aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
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"
+ }
+ }
+ }
+ }
+}