From fa16fc8ef2d5add03db7ab5713fe8c336a3df2ab Mon Sep 17 00:00:00 2001 From: jmp Date: Mon, 11 Jan 2021 23:24:09 -0800 Subject: [PATCH] Fix license plugin --- build.gradle.kts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 223f963d..832ce1d5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { useJUnitPlatform() } - withType() { + withType { 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) } }