Skip to content

Commit

Permalink
Include the platformInterface project in publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
md5sha256 committed Dec 6, 2023
1 parent 4f9fc95 commit 0e0b085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions AreaShop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ dependencies {
// Project submodules
implementation(projects.areashopInterface)
implementation(projects.areashopNms)
implementation(projects.adapters.platform.platformInterface)

if (!providers.environmentVariable("JITPACK").isPresent) {
// We don't need these adapters if we are only publishing an api jar
implementation(projects.adapters.platform.platformInterface)
implementation(projects.adapters.platform.paper)

runtimeOnly(projects.adapters.plugins.worldedit)
runtimeOnly(projects.adapters.plugins.worldguard)
runtimeOnly(projects.adapters.plugins.fastasyncworldedit)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ subprojects {
}
}

if (project.path.contains("platform").not()) {
if (project.path.contains("platform").not() && project != projects.adapters.platform.platformInterface) {
publishing {
publications {
create<MavenPublication>(project.name) {
Expand Down

0 comments on commit 0e0b085

Please sign in to comment.