Skip to content

Commit

Permalink
Update compiler args for JDK21
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed May 6, 2024
1 parent d0bb85e commit 6bd2079
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/org/incendo/cloudbuildlogic/BasePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class BasePlugin : Plugin<Project> {
// -processing: ignore unclaimed annotations
// -classfile: ignore annotations/annotation methods missing in dependencies
// -serial: we don't support java serialization
options.compilerArgs.addAll(listOf("-Xlint:-processing,-classfile,-serial", "-Werror"))
// -options: ignore java 8 deprecation with jdk 21
options.compilerArgs.addAll(listOf("-Xlint:-processing,-classfile,-serial,-options", "-Werror"))
}
}
}

0 comments on commit 6bd2079

Please sign in to comment.