diff --git a/build.gradle b/build.gradle index 0397ffb..0912ef9 100644 --- a/build.gradle +++ b/build.gradle @@ -34,11 +34,11 @@ subprojects { withSourcesJar() } - tasks.withType(JavaCompile) { + tasks.withType(JavaCompile).configureEach { options.setEncoding("UTF-8") } - tasks.withType(Jar) { + tasks.withType(Jar).configureEach { from([rootProject.file("LICENSE")]) duplicatesStrategy(DuplicatesStrategy.EXCLUDE) } @@ -72,8 +72,8 @@ subprojects { url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl credentials { - username rootProject.properties.getOrDefault("maven_username", "") - password rootProject.properties.getOrDefault("maven_password", "") + username = rootProject.properties.getOrDefault("maven_username", "") + password = rootProject.properties.getOrDefault("maven_password", "") } } }