Fix license plugin

This commit is contained in:
jmp 2021-01-11 23:24:09 -08:00 committed by Alexander Söderberg
parent ef85fa9ee9
commit fa16fc8ef2

View file

@ -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)
} }
} }