Skip to content

Commit

Permalink
Fix sponge compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Apr 30, 2024
1 parent 9545c32 commit 1a15822
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud-sponge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ dependencies {
implementation(libs.cloud.brigadier)
implementation(project(":cloud-minecraft-modded-common", configuration = "namedElements"))
compileOnly("org.spongepowered:spongeapi:11.0.0-SNAPSHOT")
compileOnly("org.spongepowered:sponge:1.20.2-11.0.0-SNAPSHOT")
compileOnly("org.spongepowered:sponge:1.20.4-11.0.0-SNAPSHOT")
}

minecraft {
version("1.20.2")
version("1.20.4")
platform(MinecraftPlatform.JOINED)
}
7 changes: 7 additions & 0 deletions examples/example-sponge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,10 @@ configurations {
}
}
}

afterEvaluate {
tasks.compileJava {
// TODO - sponge AP not compatible with J21
options.compilerArgs.remove("-Werror")
}
}

0 comments on commit 1a15822

Please sign in to comment.