Fix license plugin
This commit is contained in:
parent
ef85fa9ee9
commit
fa16fc8ef2
1 changed files with 3 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ allprojects {
|
||||||
license {
|
license {
|
||||||
header = rootProject.file("HEADER")
|
header = rootProject.file("HEADER")
|
||||||
mapping("java", "DOUBLESLASH_STYLE")
|
mapping("java", "DOUBLESLASH_STYLE")
|
||||||
mapping("kotlin", "DOUBLESLASH_STYLE")
|
mapping("kt", "DOUBLESLASH_STYLE")
|
||||||
includes(listOf("**/*.java", "**/*.kt"))
|
includes(listOf("**/*.java", "**/*.kt"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -66,7 +66,7 @@ subprojects {
|
||||||
withType<Test> {
|
withType<Test> {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
withType<JavaCompile>() {
|
withType<JavaCompile> {
|
||||||
options.encoding = Charsets.UTF_8.name()
|
options.encoding = Charsets.UTF_8.name()
|
||||||
options.compilerArgs.addAll(setOf("-Xlint:all", "-Xlint:-processing", "-Werror"))
|
options.compilerArgs.addAll(setOf("-Xlint:all", "-Xlint:-processing", "-Werror"))
|
||||||
options.errorprone {
|
options.errorprone {
|
||||||
|
|
@ -86,6 +86,7 @@ subprojects {
|
||||||
}
|
}
|
||||||
build {
|
build {
|
||||||
dependsOn(checkstyleMain)
|
dependsOn(checkstyleMain)
|
||||||
|
dependsOn(licenseMain)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue