This repository was archived by the owner on Oct 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ dependencies {
2323group = " org.purejava"
2424version = " 1.6.1-SNAPSHOT"
2525description = " A Java library for storing secrets on linux in a KDE wallet over D-Bus, implements kwallet."
26- java.sourceCompatibility = JavaVersion .VERSION_19
2726
2827val sonatypeUsername: String = System .getenv(" SONATYPE_USERNAME" ) ? : " "
2928val sonatypePassword: String = System .getenv(" SONATYPE_PASSWORD" ) ? : " "
3029
3130java {
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-
113102tasks.withType<JavaCompile > {
114103 options.encoding = " UTF-8"
115104}
116105
117106tasks.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}
You can’t perform that action at this time.
0 commit comments