diff options
author | Moxie Marlinspike <moxie@thoughtcrime.org> | 2015-01-08 16:17:33 -0800 |
---|---|---|
committer | Moxie Marlinspike <moxie@thoughtcrime.org> | 2015-01-08 16:17:33 -0800 |
commit | 31cca7eaa5b04616ed661184a625e3c686bff5d0 (patch) | |
tree | d673ba02c36c2f03de561ede70cfa78508470b40 /java/build.gradle | |
parent | 6445ea5f13850f42c3952bd06a2369317683ed88 (diff) |
Add license and javadoc to new artifacts.
Diffstat (limited to 'java/build.gradle')
-rw-r--r-- | java/build.gradle | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/java/build.gradle b/java/build.gradle index 11834e6b..fdcc4313 100644 --- a/java/build.gradle +++ b/java/build.gradle @@ -63,6 +63,14 @@ uploadArchives { developerConnection 'scm:git@github.com:WhisperSystems/libaxolotl-android.git' } + licenses { + license { + name 'GPLv3' + url 'https://www.gnu.org/licenses/gpl-3.0.txt' + distribution 'repo' + } + } + developers { developer { name 'Moxie Marlinspike' @@ -81,3 +89,22 @@ task installArchives(type: Upload) { } } } + +task packageJavadoc(type: Jar, dependsOn: 'javadoc') { + from javadoc.destinationDir + classifier = 'javadoc' +} + +task packageSources(type: Jar) { + from sourceSets.main.allSource + classifier = 'sources' +} + +artifacts { + archives(packageJavadoc) { + type = 'javadoc' + } + + archives packageSources +} + |