Skip to content

Commit

Permalink
chore: disable this-escape warning only for paper
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlama committed Nov 20, 2024
1 parent 9200fb8 commit 8be7919
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ subprojects {
}

tasks.withType<JavaCompile> {
options.compilerArgs.addAll(arrayOf("-Xlint:all", "-Xlint:-processing", "-Xdiags:verbose", "-Xlint:-this-escape"))
options.compilerArgs.addAll(arrayOf("-Xlint:all", "-Xlint:-processing", "-Xdiags:verbose"))
options.encoding = "UTF-8"
}

Expand All @@ -54,6 +54,10 @@ configure(subprojects.filter {
}) {
apply(plugin = "io.papermc.paperweight.userdev")

tasks.withType<JavaCompile> {
options.compilerArgs.addAll(arrayOf("-Xlint:-this-escape"))
}

dependencies {
paperweight.paperDevBundle("1.21.3-R0.1-SNAPSHOT")
}
Expand Down

0 comments on commit 8be7919

Please sign in to comment.