From 8335ff58970cadaebf00892166f5a292131a766e Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 1 Jun 2021 02:54:00 +0800 Subject: Upload to maven --- runtime/build.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'runtime') 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" + } + } + } + } +} -- cgit