Gradle: Add missing source and javadoc rules. (#113)

pull/114/head
Yang Song 6 years ago committed by GitHub
parent da6971d730
commit dd59275fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      build.gradle

@ -96,6 +96,25 @@ signing {
sign configurations.archives
}
javadoc.options {
encoding = 'UTF-8'
links 'https://docs.oracle.com/javase/8/docs/api/'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
uploadArchives {
repositories {
mavenDeployer {

Loading…
Cancel
Save