aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/build.gradle19
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/build.gradle b/runtime/build.gradle
index e27d782e6..1a32a7a10 100644
--- a/runtime/build.gradle
+++ b/runtime/build.gradle
@@ -25,3 +25,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"
+ }
+ }
+ }
+ }
+}