Skip to content

Commit 192cc9c

Browse files
committed
feat: added publishing javadoc and sources
1 parent 7c39592 commit 192cc9c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ java {
1010
toolchain {
1111
languageVersion = JavaLanguageVersion.of(17)
1212
}
13+
withSourcesJar()
14+
withJavadocJar()
1315
}
1416

1517
repositories {
@@ -28,7 +30,13 @@ tasks.withType<JavaCompile> {
2830
}
2931

3032
tasks.withType<Javadoc> {
33+
isFailOnError = false
3134
options.encoding = "UTF-8"
35+
(options as StandardJavadocDocletOptions).apply {
36+
addBooleanOption("Xdoclint:none", true)
37+
addStringOption("encoding", "UTF-8")
38+
addStringOption("charSet", "UTF-8")
39+
}
3240
}
3341

3442
tasks.withType<ProcessResources> {

0 commit comments

Comments
 (0)