We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d7ba88 commit f268df8Copy full SHA for f268df8
build.gradle.kts
@@ -119,8 +119,16 @@ if (!version.toString().endsWith("-SNAPSHOT")) {
119
}
120
121
122
-tasks.withType<Javadoc> {
123
- failOnError = false
+tasks.withType<Javadoc>().configureEach {
+ // Use reflection to access the private field
124
+ try {
125
+ val field = Javadoc::class.java.getDeclaredField("failOnError")
126
+ field.isAccessible = true
127
+ field.setBoolean(this, false)
128
+ } catch (e: Exception) {
129
+ logger.warn("Could not set failOnError: ${e.message}")
130
+ }
131
+
132
(options as StandardJavadocDocletOptions).encoding = "UTF-8"
133
if (JavaVersion.current().isJava9Compatible) {
134
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
0 commit comments