mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-09 06:07:08 +01:00
Prevent license checks from running
- update internal docs to explain license tasks
This commit is contained in:
parent
cd14ede339
commit
856cc2822c
16
INTERNAL.md
16
INTERNAL.md
@ -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.
|
||||
|
||||
|
10
build.gradle
10
build.gradle
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user