diff options
author | Ben Gruver <bgruv@google.com> | 2014-01-17 02:04:07 -0800 |
---|---|---|
committer | Ben Gruver <bgruv@google.com> | 2014-01-17 02:04:07 -0800 |
commit | 5b411f3447b1ad81152d477102303a6346e1c6ed (patch) | |
tree | 419e66bb55c551dc9ad2d3e2f8fe348e472ef5d2 /util | |
parent | 90db3a16b79470f4b67a4e3c008f98f9c90e0326 (diff) | |
download | smali-5b411f3447b1ad81152d477102303a6346e1c6ed.tar.gz |
Add gradle configuration for uploading smali artifacts to maven
Diffstat (limited to 'util')
-rw-r--r-- | util/build.gradle | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/util/build.gradle b/util/build.gradle index 6dbd7a07..82d2998f 100644 --- a/util/build.gradle +++ b/util/build.gradle @@ -34,4 +34,24 @@ dependencies { compile depends.findbugs compile depends.guava testCompile depends.junit +} + +task sourcesJar(type: Jar) { + classifier = 'sources' + from sourceSets.main.allJava +} + +artifacts { + archives sourcesJar +} + +uploadArchives { + repositories.mavenDeployer { + pom.project { + description 'This library contains random utilities used by smali/baksmali/dexlib2' + scm { + url 'https://github.com/JesusFreke/smali/tree/master/util' + } + } + } }
\ No newline at end of file |