Skip to content

Commit

Permalink
Only publish the core plugin jar, don't publish other utility modules
Browse files Browse the repository at this point in the history
  • Loading branch information
md5sha256 committed Dec 6, 2023
1 parent 4fd478d commit 8cc44cf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
21 changes: 21 additions & 0 deletions AreaShop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,24 @@ tasks {
relocate("jakarta.inject", "${base}.jakarta.inject")
}
}

publishing {
publications {
create<MavenPublication>(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")
}
}
}
}
}
}
23 changes: 0 additions & 23 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,4 @@ subprojects {
filteringCharset = encodingName
}
}

if (project.path.contains("platform").not()) {
publishing {
publications {
create<MavenPublication>(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")
}
}
}
}
}
}
}
}

0 comments on commit 8cc44cf

Please sign in to comment.