This is an automated email from the ASF dual-hosted git repository.

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new f74bd5d76 Errorprone: prepare for v2.46.0 (#3384)
f74bd5d76 is described below

commit f74bd5d763ceda50fda094d2b0eae02eca752e1e
Author: Robert Stupp <[email protected]>
AuthorDate: Fri Jan 9 08:57:11 2026 +0100

    Errorprone: prepare for v2.46.0 (#3384)
    
    This tackles the current failure in #3382: 
`-XDaddTypeAnnotationsToSymbol=true is required by Error Prone on JDK 21`
---
 build-logic/src/main/kotlin/polaris-java.gradle.kts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/build-logic/src/main/kotlin/polaris-java.gradle.kts 
b/build-logic/src/main/kotlin/polaris-java.gradle.kts
index afff88994..48da55557 100644
--- a/build-logic/src/main/kotlin/polaris-java.gradle.kts
+++ b/build-logic/src/main/kotlin/polaris-java.gradle.kts
@@ -75,7 +75,9 @@ checkstyle {
 tasks.withType<Checkstyle>().configureEach { tasks.findByName("jandex")?.let { 
mustRunAfter(it) } }
 
 tasks.withType(JavaCompile::class.java).configureEach {
-  options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation"))
+  options.compilerArgs.addAll(
+    listOf("-Xlint:unchecked", "-Xlint:deprecation", 
"-XDaddTypeAnnotationsToSymbol=true")
+  )
   options.errorprone.disableAllWarnings = true
   options.errorprone.disableWarningsInGeneratedCode = true
   options.errorprone.excludedPaths =

Reply via email to