Skip to content

Commit

Permalink
Add sources and javadocs to java modules
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbrison committed Jun 19, 2016
1 parent f4accfd commit da00657
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions maven_push_java.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,20 @@ afterEvaluate { project ->
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}

task javadocsJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}

task sourceJar (type : Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives javadocsJar
archives sourceJar
}
}

0 comments on commit da00657

Please sign in to comment.