aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorBen Gruver <bgruv@google.com>2014-01-17 02:04:07 -0800
committerBen Gruver <bgruv@google.com>2014-01-17 02:04:07 -0800
commit5b411f3447b1ad81152d477102303a6346e1c6ed (patch)
tree419e66bb55c551dc9ad2d3e2f8fe348e472ef5d2 /util
parent90db3a16b79470f4b67a4e3c008f98f9c90e0326 (diff)
downloadsmali-5b411f3447b1ad81152d477102303a6346e1c6ed.tar.gz
Add gradle configuration for uploading smali artifacts to maven
Diffstat (limited to 'util')
-rw-r--r--util/build.gradle20
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