Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Commit d36867b

Browse files
committed
Code cleanup
1 parent b9a362b commit d36867b

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

build.gradle.kts

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ dependencies {
2323
group = "org.purejava"
2424
version = "1.6.1-SNAPSHOT"
2525
description = "A Java library for storing secrets on linux in a KDE wallet over D-Bus, implements kwallet."
26-
java.sourceCompatibility = JavaVersion.VERSION_19
2726

2827
val sonatypeUsername: String = System.getenv("SONATYPE_USERNAME") ?: ""
2928
val sonatypePassword: String = System.getenv("SONATYPE_PASSWORD") ?: ""
3029

3130
java {
31+
java.sourceCompatibility = JavaVersion.VERSION_19
3232
withSourcesJar()
3333
withJavadocJar()
3434
}
@@ -99,21 +99,14 @@ if (!version.toString().endsWith("-SNAPSHOT")) {
9999
}
100100
}
101101

102-
tasks.javadoc {
103-
if (JavaVersion.current().isJava9Compatible) {
104-
(options as? StandardJavadocDocletOptions)?.addBooleanOption("html5", true)
105-
}
106-
}
107-
108-
tasks.withType<Javadoc> {
109-
isFailOnError = false
110-
}
111-
112-
113102
tasks.withType<JavaCompile> {
114103
options.encoding = "UTF-8"
115104
}
116105

117106
tasks.withType<Javadoc> {
107+
isFailOnError = false
108+
if (JavaVersion.current().isJava9Compatible) {
109+
(options as? StandardJavadocDocletOptions)?.addBooleanOption("html5", true)
110+
}
118111
(options as? StandardJavadocDocletOptions)?.encoding = "UTF-8"
119112
}

0 commit comments

Comments
 (0)