Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghostbuster91/gradle-boilerplate
https://github.com/ghostbuster91/gradle-boilerplate
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ghostbuster91/gradle-boilerplate
- Owner: ghostbuster91
- License: bsd-2-clause
- Created: 2019-06-26T19:08:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-03T07:14:38.000Z (over 5 years ago)
- Last Synced: 2024-10-05T03:01:08.421Z (about 1 month ago)
- Language: Scala
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gradle boilerplate
[![Build Status](https://travis-ci.org/ghostbuster91/gradle-boilerplate.svg?branch=master)](https://travis-ci.org/ghostbuster91/gradle-boilerplate)This plugin is just an adaptation of amazing [sbt-boilerplate plugin](https://github.com/sbt/sbt-boilerplate) for gradle.
How to:
```gradle
sourceSets {
generated{
java.srcDir "${buildDir}/generated/src/java/"
kotlin.srcDir "${buildDir}/generated/src/java/"
compileClasspath = sourceSets.main.compileClasspath
}
main {
compileClasspath += sourceSets.generated.output
}
}compileGeneratedJava.dependsOn(generateBoilerplate)
compileGeneratedKotlin.dependsOn(generateBoilerplate)compileJava {
dependsOn(compileGeneratedJava)
}compileKotlin {
kotlinOptions.jvmTarget = "1.8"
dependsOn(compileGeneratedKotlin)
}
```Full example which shows how to generate rxJava combineLatest methods for more than 9 parameters can be found [here](https://github.com/ghostbuster91/gradle-boilerplate-example)
### Releasing
1. Update version in build.gradle
2. Create tag and push to github, travis will handle the rest