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 {
header = rootProject.file("HEADER")
mapping("java", "DOUBLESLASH_STYLE")
mapping("kotlin", "DOUBLESLASH_STYLE")
mapping("kt", "DOUBLESLASH_STYLE")
includes(listOf("**/*.java", "**/*.kt"))
}
}
@ -66,7 +66,7 @@ subprojects {
withType<Test> {
useJUnitPlatform()
}
withType<JavaCompile>() {
withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
options.compilerArgs.addAll(setOf("-Xlint:all", "-Xlint:-processing", "-Werror"))
options.errorprone {
@ -86,6 +86,7 @@ subprojects {
}
build {
dependsOn(checkstyleMain)
dependsOn(licenseMain)
}
}