Skip to content

Commit

Permalink
Refactored JBukkit dependency in libs file
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Apr 3, 2024
1 parent c816e4c commit 6417a4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ allprojects {
name = "Fulminazzo repository"
url = "https://repo.fulminazzo.it/releases"
}
mavenLocal()
}

dependencies {
Expand All @@ -81,11 +80,11 @@ allprojects {
if (projectName.contains("bukkit")) {
compileOnly libs.spigot
testImplementation libs.spigot.latest
testImplementation "it.fulminazzo:JBukkit:1.0"
testImplementation libs.jbukkit
}

if (projectName.contains("legacy") || projectName.contains("obsolete"))
testImplementation "it.fulminazzo.JBukkit:legacy:1.0"
testImplementation libs.jbukkit.legacy

if (projectName.contains("-")) {
def name = projectName.substring(0, projectName.indexOf("-"))
Expand Down
7 changes: 6 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ spigot_latest = "1.20-R0.1-SNAPSHOT"

lombok = "1.18.30"
annotations = "24.1.0"

junit = "5.9.1"
mockito = "4.11.0"
jbukkit = "1.0"

[libraries]
fulmicollection = { module = "it.fulminazzo:FulmiCollection", version.ref = "fulmicollection" }
Expand All @@ -26,5 +28,8 @@ spigot_latest = { module = "org.spigotmc:spigot-api", version.ref = "spigot_late

lombok = { module = "org.projectlombok:lombok", version.ref = "lombok" }
annotations = { module = "org.jetbrains:annotations", version.ref = "annotations" }

junit-platform = { module = "org.junit:junit-bom", version.ref = "junit" }
mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
jbukkit = { module = "it.fulminazzo:JBukkit", version.ref = "jbukkit" }
jbukkit_legacy = { module = "it.fulminazzo.JBukkit:legacy", version.ref = "jbukkit" }

0 comments on commit 6417a4f

Please sign in to comment.