From a742757d7ef79132f96560b7d2cc4839af2e5101 Mon Sep 17 00:00:00 2001 From: way2muchnoise Date: Tue, 13 Sep 2016 21:14:00 +0200 Subject: [PATCH 1/2] add api and deobf artifact the maven stuff 'might' work --- build.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/build.gradle b/build.gradle index 81ba784b7..f7b87a772 100755 --- a/build.gradle +++ b/build.gradle @@ -72,6 +72,22 @@ processResources { } } +task deobfJar(type: Jar) { + from sourceSets.main.output + classifier 'deobf' +} + +task apiJar(type: Jar, dependsOn: 'sourceMainJava') { + from sourceSets.main.allSource + from sourceSets.main.output + include 'refinedstorage/api/**/*' + classifier = 'api' +} + +artifacts { + archives deobfJar, apiJar +} + publishing { publications { MyPublication(MavenPublication) { @@ -79,6 +95,9 @@ publishing { groupId = project.group artifactId = project.archivesBaseName version = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER') + artifact jar + artifact deobfJar + artifact apiJar } } } From 9a7081b1e9e2a66d2fd57d030bcc30b622b97ed2 Mon Sep 17 00:00:00 2001 From: way2muchnoise Date: Tue, 13 Sep 2016 21:24:13 +0200 Subject: [PATCH 2/2] fix duplicate classifier for maven publish --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index f7b87a772..6482bb461 100755 --- a/build.gradle +++ b/build.gradle @@ -81,7 +81,7 @@ task apiJar(type: Jar, dependsOn: 'sourceMainJava') { from sourceSets.main.allSource from sourceSets.main.output include 'refinedstorage/api/**/*' - classifier = 'api' + classifier 'api' } artifacts { @@ -95,7 +95,7 @@ publishing { groupId = project.group artifactId = project.archivesBaseName version = project.version + '-' + System.getenv('TRAVIS_BUILD_NUMBER') - artifact jar + artifact source: jar, classifier: 'obf', extension: 'jar' artifact deobfJar artifact apiJar }