From 8cc44cf79f467a4d9a401df36ab52f559cd68335 Mon Sep 17 00:00:00 2001 From: md5sha256 <42793301+md5sha256@users.noreply.github.com> Date: Thu, 7 Dec 2023 01:42:39 +0800 Subject: [PATCH] Only publish the core plugin jar, don't publish other utility modules --- AreaShop/build.gradle.kts | 21 +++++++++++++++++++++ build.gradle.kts | 23 ----------------------- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/AreaShop/build.gradle.kts b/AreaShop/build.gradle.kts index 409fa4d9..829e3c71 100644 --- a/AreaShop/build.gradle.kts +++ b/AreaShop/build.gradle.kts @@ -114,3 +114,24 @@ tasks { relocate("jakarta.inject", "${base}.jakarta.inject") } } + +publishing { + publications { + create(project.name) { + from(components["java"]) + pom { + scm { + connection.set("scm:git:git://github.com/md5sha256/AreaShop.git") + developerConnection.set("scm:git:ssh://github.com/md5sha256/AreaShop.git") + url.set("https://github.com/md5sha256/AreaShop/tree/dev/bleeding") + } + licenses { + license { + name.set("GNU General Public License v3.0") + url.set("https://github.com/md5sha256/AreaShop/blob/dev/bleeding/LICENSE") + } + } + } + } + } +} diff --git a/build.gradle.kts b/build.gradle.kts index 7cabf4db..e90a5f80 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -70,27 +70,4 @@ subprojects { filteringCharset = encodingName } } - - if (project.path.contains("platform").not()) { - publishing { - publications { - create(project.name) { - from(components["java"]) - pom { - scm { - connection.set("scm:git:git://github.com/md5sha256/AreaShop.git") - developerConnection.set("scm:git:ssh://github.com/md5sha256/AreaShop.git") - url.set("https://github.com/md5sha256/AreaShop/tree/dev/bleeding") - } - licenses { - license { - name.set("GNU General Public License v3.0") - url.set("https://github.com/md5sha256/AreaShop/blob/dev/bleeding/LICENSE") - } - } - } - } - } - } - } }