File tree Expand file tree Collapse file tree 6 files changed +23
-15
lines changed
Expand file tree Collapse file tree 6 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 11import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
32
43plugins {
54 alias(libs.plugins.kotlin)
@@ -42,8 +41,8 @@ subprojects {
4241
4342 dependencies {
4443 testImplementation(rootProject.libs.kotlin.test)
45- implementation (rootProject.libs.kotlin.jvm)
46- implementation (rootProject.libs.kotlin.coroutines)
44+ compileOnly (rootProject.libs.kotlin.jvm)
45+ compileOnly (rootProject.libs.kotlin.coroutines)
4746 }
4847
4948 java {
@@ -60,6 +59,14 @@ subprojects {
6059 tasks.named(" shadowJar" , ShadowJar ::class ) {
6160 mergeServiceFiles()
6261 archiveFileName.set(" ${project.name} .jar" )
62+
63+ relocate(" com.google.protobuf" , " app.simplecloud.relocate.google.protobuf" )
64+ relocate(" com.google.common" , " app.simplecloud.relocate.google.common" )
65+ relocate(" io.grpc" , " app.simplecloud.relocate.io.grpc" )
66+
67+ relocate(" org.incendo" , " app.simplecloud.plugin.proxy.relocate.incendo" )
68+ relocate(" org.spongepowered" , " app.simplecloud.plugin.proxy.relocate.spongepowered" )
69+ relocate(" app.simplecloud.plugin.api" , " app.simplecloud.plugin.proxy.relocate.plugin.api" )
6370 }
6471
6572 tasks.test {
Original file line number Diff line number Diff line change @@ -21,10 +21,7 @@ dependencies {
2121
2222
2323tasks.shadowJar {
24- relocate(" org.incendo" , " app.simplecloud.relocate.incendo" )
25- relocate(" org.spongepowered" , " app.simplecloud.relocate.spongepowered" )
2624 relocate(" net.kyori" , " app.simplecloud.relocate.kyori" )
27- relocate(" app.simplecloud.plugin.api" , " app.simplecloud.relocate.plugin.api" )
2825}
2926
3027modrinth {
Original file line number Diff line number Diff line change 11name : proxy-essentials-bungeecord
22main : app.simplecloud.plugin.proxy.bungeecord.ProxyBungeeCordPlugin
33version : 1.0.0
4- author : D151l
4+ author : D151l
5+ depends : [simplecloud-api]
Original file line number Diff line number Diff line change @@ -4,9 +4,14 @@ dependencies {
44 compileOnly(rootProject.libs.adventure.minimessage)
55
66 implementation(rootProject.libs.configurate.yaml)
7- implementation(rootProject.libs.configurate.kotlin)
7+ implementation(rootProject.libs.configurate.kotlin) {
8+ exclude(group = " org.jetbrains.kotlin" )
9+ exclude(group = " org.jetbrains.kotlinx" )
10+ }
811
912 compileOnly(rootProject.libs.simplecloud.controller)
1013
14+ api(rootProject.libs.simplecloud.plugin.api)
15+
1116 compileOnly(rootProject.libs.command.cloud.core)
1217}
Original file line number Diff line number Diff line change @@ -20,12 +20,6 @@ dependencies {
2020 implementation(rootProject.libs.command.cloud.velocity)
2121}
2222
23- tasks.shadowJar {
24- relocate(" org.incendo" , " app.simplecloud.relocate.incendo" )
25- relocate(" org.spongepowered" , " app.simplecloud.relocate.spongepowered" )
26- relocate(" app.simplecloud.plugin.api" , " app.simplecloud.relocate.plugin.api" )
27- }
28-
2923modrinth {
3024 token.set(project.findProperty(" modrinthToken" ) as String? ? : System .getenv(" MODRINTH_TOKEN" ))
3125 projectId.set(" WzfN2mLK" )
Original file line number Diff line number Diff line change 66 " D151l"
77 ],
88 "main" : " app.simplecloud.plugin.proxy.velocity.ProxyVelocityPlugin" ,
9- "dependencies" : []
9+ "dependencies" : [
10+ {
11+ "id" : " simplecloud-api"
12+ }
13+ ]
1014}
You can’t perform that action at this time.
0 commit comments