https://github.com/eendroroy/gradle-example-plugin
gradle plugin example
https://github.com/eendroroy/gradle-example-plugin
example gradle-plugin java
Last synced: 10 months ago
JSON representation
gradle plugin example
- Host: GitHub
- URL: https://github.com/eendroroy/gradle-example-plugin
- Owner: eendroroy
- License: apache-2.0
- Created: 2017-10-20T23:01:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T06:52:24.000Z (about 2 years ago)
- Last Synced: 2025-01-26T19:21:53.165Z (12 months ago)
- Topics: example, gradle-plugin, java
- Language: Java
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gradle-example-plugin
[  ](https://bintray.com/eendroroy/com.indrajit/gradle-example-plugin/_latestVersion)
An example gradle plugin
## Build and Use the plugin
User gradle to build the plugin
```bash
gradle build
```
After the first build modify `build.gradle` file to include the plugin.
```groovy
buildscript {
...
// TODO: Uncomment these lines after first build to use the plugin
repositories {
flatDir {
dirs "$buildDir/libs"
}
}
dependencies {
classpath name: "$project.name-${projectVersion}"
}
...
}
...
// TODO: Uncomment this line after first build to use the plugin
apply plugin: 'com.indrajit.example'
...
```
Then run the `exampleTask`
```bash
gradle exampleTask
```
Should show the following:
```bash
> Task :exampleTask
Project Name: 'gradle-example-plugin'
Project Description: '...'
BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
```
## Contributing
Bug reports and pull requests are welcome on GitHub at [gradle-example-plugin repository](https://github.com/eendroroy/gradle-example-plugin).
This project is intended to be a safe, welcoming space for collaboration,
and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## Authors
* **indrajit** - *Owner* - [eendroroy](https://github.com/eendroroy)
## License
This project is licensed under the WTFPL License - see the [LICENSE](LICENSE) file for details.