Skip to content

Commit b5238bb

Browse files
authored
Merge pull request #10 from simplecloudapp/feat/integrate-cloud-api
Feat/integrate cloud api
2 parents 5bb9009 + df8218c commit b5238bb

File tree

6 files changed

+23
-15
lines changed

6 files changed

+23
-15
lines changed

build.gradle.kts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
32

43
plugins {
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 {

proxy-bungeecord/build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ dependencies {
2121

2222

2323
tasks.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

3027
modrinth {
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: proxy-essentials-bungeecord
22
main: app.simplecloud.plugin.proxy.bungeecord.ProxyBungeeCordPlugin
33
version: 1.0.0
4-
author: D151l
4+
author: D151l
5+
depends: [simplecloud-api]

proxy-shared/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

proxy-velocity/build.gradle.kts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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-
2923
modrinth {
3024
token.set(project.findProperty("modrinthToken") as String? ?: System.getenv("MODRINTH_TOKEN"))
3125
projectId.set("WzfN2mLK")

proxy-velocity/src/main/resources/velocity-plugin.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66
"D151l"
77
],
88
"main": "app.simplecloud.plugin.proxy.velocity.ProxyVelocityPlugin",
9-
"dependencies": []
9+
"dependencies": [
10+
{
11+
"id": "simplecloud-api"
12+
}
13+
]
1014
}

0 commit comments

Comments
 (0)