at June 2022, by kazurayam
This repository is based on the following article published by the Gradle project:
I wanted to develop a custom Gradle plugin. I wanted to know how to test it. But I did not know how to. One day I read the above article. I could easily see that the article discusses exactly what I want to learn. I read the article and tried to develop a working example. But it was not as easy as it should be. The article missed some files that comprise the project. Some codes proposed by the article failed. Unfortunately the author didn't provide a zip file of working example that works. I struggled for a few days and got a success. Here I would publish the zip of sample code of "Testing Gradle plugins" that works. Please refer to
このレポジトリはGradle本家プロジェクトが公開している下記の記事に基づいています。
わたしはカスタムなGradleプラグインを作りたかった。自作のプラグインをちゃんとテストしたかったが、カスタムGradle Pluginの自動化テストをどう書けばいいのかわからなかった。ある日、上記の記事を見つけた。記事を読みはじめてすぐつまずいた。コピペしたコードを走らせるとエラーが発生した。サンプルコードの例示が一部欠けていた。「検証済みのサンプルコードをzipして提供してくれ!」と不満におもったが無いものは無い。別の情報源も参照しながら数日間かけて、ちゃんと動くサンプルコード一式を作るができた。オリジナル記事のサンプルコードを下敷きにしているが、直すべきところを直したのでちゃんと動く。それが取り柄です。zipファイルを公開します。