Skip to content

Commit f31fc38

Browse files
committed
Include javadoc & groovydoc in the same jar and restore source inclusion
1 parent ec86f71 commit f31fc38

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

gradle/java-config.gradle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
compileJava.options.release = javaVersion.toInteger()
1+
compileJava.options.release = javaVersion.toInteger()
2+
3+
java {
4+
withSourcesJar()
5+
withJavadocJar()
6+
}
7+
8+
tasks.named('javadocJar', Jar).configure {
9+
dependsOn tasks.groovydoc
10+
11+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
12+
from tasks.groovydoc.outputs
13+
}

0 commit comments

Comments
 (0)