Skip to content

A set of sample code base on the Gradle's documentation "Testing Gradle Plugin". You can download the zip, unzip it and run test!

Notifications You must be signed in to change notification settings

kazurayam/TestingGradlePlugins-revised

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Gradle plugins (カスタムGradleプラグインをテストする方法)

at June 2022, by kazurayam

What is this

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ファイルを公開します。

About

A set of sample code base on the Gradle's documentation "Testing Gradle Plugin". You can download the zip, unzip it and run test!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published