declar artifacts after tasks
@@ -106,28 +106,10 @@ compileTestKotlin {
}
}
-javadoc {
- source = sourceSets.main.allJava
- classpath = configurations.compileClasspath
-
- options {
- setMemberLevel JavadocMemberLevel.PUBLIC
- setAuthor true
-
- links "https://docs.oracle.com/javase/8/docs/api/"
- }
-}
-
signing {
sign configurations.archives
}
-
-artifacts {
- archives javadocJar, sourcesJar
-}
-
-
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
@@ -137,3 +119,7 @@ task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
+
+artifacts {
+ archives javadocJar, sourcesJar
+}
