Skip to content

Commit

Permalink
Rollback to slf4j-api v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vankka committed Nov 16, 2024
1 parent 791abc7 commit 751ab29
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
3 changes: 3 additions & 0 deletions api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ dependencies {
api(libs.jda) {
// We don't use audio
exclude module: 'opus-java'
// v2
exclude module: 'slf4j-api'
}
api(libs.okhttp)
api(libs.slf4j.api)
}

// Relocations are in buildscript/api.gradle
Expand Down
5 changes: 4 additions & 1 deletion bukkit/paper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ java {

dependencies {
// Platform
compileOnly(libs.paperapi)
compileOnly(libs.paperapi) {
// v2
exclude module: 'slf4j-api'
}

// Adventure (runtime downloaded by :bukkit)
compileOnly(libs.adventure.platform.bukkit)
Expand Down
5 changes: 4 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ dependencyResolutionManagement {
library('essentialsx', 'net.essentialsx', 'EssentialsX').version('2.20.1')

// Logging
library('slf4j-api', 'org.slf4j', 'slf4j-api').version('1.7.36')
library('slf4j-api', 'org.slf4j', 'slf4j-api').version {
prefer '1.7.36'
reject '[2,)' // Uses ServiceLoader
}
library('log4j-core', 'org.apache.logging.log4j', 'log4j-core').version('2.0-beta9')

// Adventure
Expand Down
9 changes: 7 additions & 2 deletions velocity/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,14 @@ dependencies {
implementation project(':common')

// Platform
annotationProcessor(libs.velocity)
annotationProcessor(libs.velocity) {
// v2
exclude module: 'slf4j-api'
}
compileOnly(libs.velocity) {
exclude module: 'caffeine'
// v2
exclude module: 'slf4j-api'
}

// DependencyDownload
Expand All @@ -54,6 +59,6 @@ dependencies {

tasks {
runVelocity {
velocityVersion("3.1.2-SNAPSHOT")
velocityVersion(libs.velocity.get().version)
}
}

0 comments on commit 751ab29

Please sign in to comment.