Skip to content

Commit 4b82eee

Browse files
Update build options
Drop unnecessary cleanLibs task, fix link to LICENSE file, set encoding to UTF-8.
1 parent bf73b28 commit 4b82eee

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

buildSrc/src/main/kotlin/internal.common-convention.gradle.kts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@ repositories {
88
mavenCentral()
99
}
1010

11-
// Utility to clean up old jars as they can clutter.
12-
// Usage:
13-
// ./gradlew cleanLibs
14-
tasks.register<Delete>("cleanLibs") {
15-
description = "Deletes build/libs directory."
16-
group = "build"
17-
18-
delete(layout.buildDirectory.dir("libs"))
19-
}
20-
2111
// Usage:
2212
// ./gradlew printVersion
2313
tasks.register<DefaultTask>("printVersion") {

buildSrc/src/main/kotlin/internal.java-library-convention.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ java {
1313

1414
tasks.withType<JavaCompile>().configureEach {
1515
options.compilerArgs.add("-parameters")
16+
options.encoding = "UTF-8"
1617
}
1718

1819
tasks.withType<Jar>().configureEach {
19-
dependsOn("cleanLibs")
2020
manifest {
2121
attributes["Implementation-Title"] = project.name
2222
attributes["Implementation-Version"] = project.version
2323
attributes["Build-Jdk-Spec"] = java.toolchain.languageVersion.get().toString()
2424
attributes["Created-By"] = "Gradle ${gradle.gradleVersion}"
2525
}
26-
from("LICENSE") {
26+
from("${rootProject.rootDir}/LICENSE") {
2727
into("META-INF/")
2828
rename { "LICENSE.txt" }
2929
}

0 commit comments

Comments
 (0)