From 5b411f3447b1ad81152d477102303a6346e1c6ed Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Fri, 17 Jan 2014 02:04:07 -0800 Subject: Add gradle configuration for uploading smali artifacts to maven --- util/build.gradle | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'util') 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 -- cgit v1.2.3