Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmakila committed Nov 9, 2024
1 parent 6d5e0d2 commit 36e627d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
15 changes: 3 additions & 12 deletions buildSrc/src/main/kotlin/proxychat.platform-conventions.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.gradle.kotlin.dsl.support.uppercaseFirstChar

plugins {
id("proxychat.java-conventions")
id("com.gradleup.shadow")
Expand All @@ -16,17 +18,6 @@ tasks {

destinationDirectory.set(file("${rootProject.rootDir}/dist"))
archiveClassifier.set("")
archiveBaseName.set("${rootProject.name}-${project.name.replaceFirstChar(Char::titlecase)}")

shadowJar {
sequenceOf(
"org.incendo.cloud",
"io.leangen",
"space.arim",
"org.bstats"
).forEach {
relocate(it, "${project.group}.${rootProject.name.lowercase()}.dependency.$it")
}
}
archiveBaseName.set("${rootProject.name}-${project.name.uppercaseFirstChar()}")
}
}
6 changes: 5 additions & 1 deletion bungeecord/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ tasks {
}
shadowJar {
sequenceOf(
"org.incendo.cloud",
"io.leangen",
"space.arim",
"org.bstats",
"net.kyori",
"org.slf4j",
"org.slf4j"
).forEach {
relocate(it, "${project.group}.${rootProject.name.lowercase()}.dependency.$it")
}
Expand Down
10 changes: 10 additions & 0 deletions velocity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ tasks {
runVelocity {
velocityVersion("3.3.0-SNAPSHOT")
}
shadowJar {
sequenceOf(
"org.incendo.cloud",
"io.leangen",
"space.arim",
"org.bstats"
).forEach {
relocate(it, "${project.group}.${rootProject.name.lowercase()}.dependency.$it")
}
}
}

velocityPluginJson {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import com.velocitypowered.api.event.EventManager;
import com.velocitypowered.api.event.Subscribe;
import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
import com.velocitypowered.api.plugin.Dependency;
import com.velocitypowered.api.plugin.Plugin;
import com.velocitypowered.api.plugin.annotation.DataDirectory;
import com.velocitypowered.api.proxy.Player;
import com.velocitypowered.api.proxy.ProxyServer;
Expand Down

0 comments on commit 36e627d

Please sign in to comment.