Prevent license checks from running

- update internal docs to explain license tasks
This commit is contained in:
Connor Tumbleson 2017-07-09 10:55:57 -04:00
parent cd14ede339
commit 856cc2822c
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75
2 changed files with 19 additions and 7 deletions

View File

@ -2,7 +2,21 @@
The steps taken for slicing an official release of Apktool.
### Taging the release.
### Ensuring proper license headers
Before we build a release, its a good practice to ensure all headers in source files contain
proper licenses.
./gradlew licenseMain && ./gradlew licenseTest
If any license violations were found you can automatically fix them with either
./gradlew licenseFormatMain
./gradlew licenseFormatTest
Like described, one formats the `src/main` directory, while the other formats the `src/test` directory.
### Tagging the release.
Inside `build.gradle` there are two lines.

View File

@ -57,8 +57,10 @@ allprojects {
tasks.withType(JavaCompile) {
options.compilerArgs += ["-Xlint:-options"]
}
compileJava.finalizedBy licenseFormatMain
licenseFormatMain.finalizedBy licenseFormatTest
// license plugin automatically fires these tasks, disable them and run them during releases
gradle.startParameter.excludedTaskNames += "licenseMain"
gradle.startParameter.excludedTaskNames += "licenseTest"
}
if (!('release' in gradle.startParameter.taskNames)) {
@ -123,10 +125,6 @@ subprojects {
mavenCentral()
}
dependencies {
testCompile depends.junit
}
test {
testLogging {
exceptionFormat = 'full'