An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# gradle-example-plugin

[ ![Download](https://api.bintray.com/packages/eendroroy/com.indrajit/gradle-example-plugin/images/download.svg) ](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.