Skip to content

Commit 74661a8

Browse files
committed
Remove InfluxDB client dependencies and relocation
1 parent 0f83838 commit 74661a8

File tree

3 files changed

+0
-109
lines changed

3 files changed

+0
-109
lines changed

bukkit/build.gradle.kts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,40 +21,16 @@ dependencies {
2121
implementation(project(":common"))
2222

2323
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
24-
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.22")
2524
}
2625

2726
java {
2827
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
2928
}
3029

31-
val relocatePath = "it.renvins.serverpulse.bukkit.libs"
32-
3330
tasks.withType<ShadowJar> {
3431
archiveBaseName = "serverpulse"
3532
archiveClassifier = "bukkit"
3633
archiveVersion = "${rootProject.version}"
37-
38-
relocate("com.influxdb", "$relocatePath.influxdb")
39-
relocate("okhttp3", "$relocatePath.okhttp3")
40-
relocate("okio", "$relocatePath.okio")
41-
relocate("org.jetbrains", "$relocatePath.jetbrains")
42-
relocate("com.google", "$relocatePath.google")
43-
relocate("io.reactivex", "$relocatePath.reactivex")
44-
relocate("javax.annotation", "$relocatePath.annotation")
45-
relocate("org.apache", "$relocatePath.apache")
46-
relocate("org.intellij", "$relocatePath.intellij")
47-
relocate("org.reactivestreams", "$relocatePath.reactivestreams")
48-
relocate("retrofit2", "$relocatePath.retrofit2")
49-
relocate("kotlin", "$relocatePath.kotlin") // Relocate instead of exclude
50-
relocate("org.jetbrains.kotlin", "$relocatePath.jetbrains.kotlin") // Relocate instead of exclude
51-
52-
// Prevent Paper from giving errors about duplicate files
53-
exclude("META-INF/AL2.0")
54-
exclude("META-INF/LGPL2.1")
55-
exclude("META-INF/LICENSE")
56-
exclude("META-INF/LICENSE.txt")
57-
exclude("META-INF/NOTICE.txt")
5834
}
5935

6036
tasks.withType<ProcessResources> {

fabric/build.gradle.kts

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -49,74 +49,6 @@ dependencies {
4949
implementation("com.github.Carleslc.Simple-YAML:Simple-Yaml:1.8.4")
5050
include("com.github.Carleslc.Simple-YAML:Simple-Yaml:1.8.4")
5151

52-
// --- InfluxDB Client and its verbose transitive dependencies ---
53-
// Main InfluxDB client API
54-
implementation("com.influxdb:influxdb-client-java:7.2.0")
55-
include("com.influxdb:influxdb-client-java:7.2.0")
56-
57-
// InfluxDB modules (explicitly include these as they are separate JARs)
58-
implementation("com.influxdb:influxdb-client-core:7.2.0")
59-
include("com.influxdb:influxdb-client-core:7.2.0")
60-
implementation("com.influxdb:influxdb-client-flux:7.2.0")
61-
include("com.influxdb:influxdb-client-flux:7.2.0")
62-
implementation("com.influxdb:influxdb-client-kotlin:7.2.0") // Add Kotlin module
63-
include("com.influxdb:influxdb-client-kotlin:7.2.0")
64-
implementation("com.influxdb:influxdb-client-reactive:7.2.0") // Add Reactive module (for RxJava)
65-
include("com.influxdb:influxdb-client-reactive:7.2.0")
66-
implementation("com.influxdb:influxdb-client-utils:7.2.0")
67-
include("com.influxdb:influxdb-client-utils:7.2.0")
68-
69-
// OkHttp (Dependency of InfluxDB)
70-
implementation("com.squareup.okhttp3:okhttp:4.11.0") // InfluxDB uses 4.11.0
71-
include("com.squareup.okhttp3:okhttp:4.11.0")
72-
implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
73-
include("com.squareup.okhttp3:logging-interceptor:4.11.0")
74-
implementation("com.squareup.okio:okio:3.4.0") // InfluxDB uses 3.4.0 for okio
75-
include("com.squareup.okio:okio-jvm:3.4.0") // Include the JVM specific JAR for okio
76-
77-
// Kotlin (Dependency of InfluxDB - version 1.9.22 used by InfluxDB 7.2.0)
78-
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.22")
79-
include("org.jetbrains.kotlin:kotlin-stdlib:1.9.22")
80-
// kotlin-stdlib-common is usually a transitive dependency of kotlin-stdlib,
81-
// and kotlin-stdlib (for JVM) includes -jdk7 and -jdk8 extensions.
82-
// If you face issues, you can add them explicitly:
83-
// implementation("org.jetbrains.kotlin:kotlin-stdlib-common:1.9.22")
84-
// include("org.jetbrains.kotlin:kotlin-stdlib-common:1.9.22")
85-
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.22")
86-
// include("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.22")
87-
implementation("org.jetbrains.kotlin:kotlin-reflect:1.9.22") // Often needed for Kotlin libraries
88-
include("org.jetbrains.kotlin:kotlin-reflect:1.9.22")
89-
90-
// Retrofit (Dependency of InfluxDB - version 2.9.0)
91-
implementation("com.squareup.retrofit2:retrofit:2.9.0")
92-
include("com.squareup.retrofit2:retrofit:2.9.0")
93-
implementation("com.squareup.retrofit2:converter-moshi:2.9.0")
94-
include("com.squareup.retrofit2:converter-moshi:2.9.0")
95-
implementation("com.squareup.retrofit2:converter-scalars:2.9.0")
96-
include("com.squareup.retrofit2:converter-scalars:2.9.0")
97-
implementation("com.squareup.retrofit2:converter-gson:2.9.0") // For Gson support
98-
include("com.squareup.retrofit2:converter-gson:2.9.0")
99-
implementation("com.squareup.retrofit2:adapter-rxjava3:2.9.0") // <<-- THIS IS FOR THE NEW ERROR
100-
include("com.squareup.retrofit2:adapter-rxjava3:2.9.0") // <<-- THIS IS FOR THE NEW ERROR
101-
102-
// Moshi (Dependency of Retrofit & InfluxDB - version 1.15.0)
103-
implementation("com.squareup.moshi:moshi:1.15.0")
104-
include("com.squareup.moshi:moshi:1.15.0")
105-
implementation("com.squareup.moshi:moshi-kotlin:1.15.0") // InfluxDB uses Kotlin, Moshi-Kotlin likely needed
106-
include("com.squareup.moshi:moshi-kotlin:1.15.0")
107-
108-
// Gson (Dependency of Retrofit if using GsonConverter)
109-
implementation("com.google.code.gson:gson:2.10.1")
110-
include("com.google.code.gson:gson:2.10.1")
111-
112-
// RxJava3 & Reactive Streams (Dependency of Retrofit adapter-rxjava3 & InfluxDB reactive module)
113-
// InfluxDB 7.2.0 uses RxJava 3.1.8 and reactive-streams 1.0.4
114-
implementation("io.reactivex.rxjava3:rxjava:3.1.8")
115-
include("io.reactivex.rxjava3:rxjava:3.1.8")
116-
implementation("org.reactivestreams:reactive-streams:1.0.4")
117-
include("org.reactivestreams:reactive-streams:1.0.4")
118-
// --- End of InfluxDB client dependencies ---
119-
12052
// Fabric Permissions API
12153
modImplementation("me.lucko:fabric-permissions-api:0.3.1")
12254
include("me.lucko:fabric-permissions-api:0.3.1")

velocity/build.gradle.kts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,4 @@ tasks.withType<ShadowJar> {
3434
archiveBaseName = "serverpulse"
3535
archiveClassifier = "velocity"
3636
archiveVersion = "${rootProject.version}"
37-
38-
val relocatePath = "it.renvins.serverpulse.velocity.libs"
39-
40-
relocate("com.influxdb", "$relocatePath.influxdb")
41-
relocate("okhttp3", "$relocatePath.okhttp3")
42-
relocate("okio", "$relocatePath.okio")
43-
relocate("org.jetbrains", "$relocatePath.jetbrains")
44-
relocate("io.reactivex", "$relocatePath.reactivex")
45-
relocate("javax.annotation", "$relocatePath.annotation")
46-
relocate("org.apache", "$relocatePath.apache")
47-
relocate("org.intellij", "$relocatePath.intellij")
48-
relocate("org.reactivestreams", "$relocatePath.reactivestreams")
49-
relocate("retrofit2", "$relocatePath.retrofit2")
50-
relocate("kotlin", "$relocatePath.kotlin") // Relocate instead of exclude
51-
relocate("org.jetbrains.kotlin", "$relocatePath.jetbrains.kotlin") // Relocate instead of exclude
52-
relocate("org.simpleyaml", "$relocatePath.simpleyaml")
53-
relocate("org.yaml", "$relocatePath.yaml")
5437
}

0 commit comments

Comments
 (0)