Skip to content

Commit

Permalink
Refactor the buildscript to only require platform deps in a non-jitpa…
Browse files Browse the repository at this point in the history
…ck environment
  • Loading branch information
md5sha256 committed Dec 6, 2023
1 parent fe16d73 commit 4f9fc95
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions AreaShop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,19 @@ dependencies {
// Project submodules
implementation(projects.areashopInterface)
implementation(projects.areashopNms)
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)
// Adapters
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)
runtimeOnly(project(":adapters:platform:bukkit-1-17", "reobf"))
runtimeOnly(projects.adapters.platform.bukkitModern)
}
runtimeOnly(projects.adapters.platform.bukkitModern)

testImplementation("com.github.seeseemelk:MockBukkit-v1.20:3.57.1")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
Expand Down

0 comments on commit 4f9fc95

Please sign in to comment.