aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-06-01 02:54:00 +0800
committershedaniel <daniel@shedaniel.me>2021-06-01 02:54:00 +0800
commit8335ff58970cadaebf00892166f5a292131a766e (patch)
tree9f8bd9cf98ae8ac0e7589d3f5c2bb586be67fda0 /api
parent2e60931f9f00b2387cbaee7a91909467f4de8839 (diff)
downloadRoughlyEnoughItems-8335ff58970cadaebf00892166f5a292131a766e.tar.gz
RoughlyEnoughItems-8335ff58970cadaebf00892166f5a292131a766e.tar.bz2
RoughlyEnoughItems-8335ff58970cadaebf00892166f5a292131a766e.zip
Upload to maven
Diffstat (limited to 'api')
-rw-r--r--api/build.gradle19
1 files changed, 19 insertions, 0 deletions
diff --git a/api/build.gradle b/api/build.gradle
index 0f2b5e415..28a7b9bc3 100644
--- a/api/build.gradle
+++ b/api/build.gradle
@@ -15,3 +15,22 @@ remapJar {
remapAccessWidener.set(false)
}
}
+
+java {
+ withSourcesJar()
+}
+
+publishing {
+ publications {
+ mavenCommon(MavenPublication) {
+ artifactId = rootProject.name + "-" + project.name
+ artifact remapJar
+ afterEvaluate {
+ artifact(remapSourcesJar.output) {
+ builtBy remapSourcesJar
+ classifier "sources"
+ }
+ }
+ }
+ }
+}