Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find annotations noise #1509

Open
xenoterracide opened this issue Mar 28, 2024 · 0 comments
Open

cannot find annotations noise #1509

xenoterracide opened this issue Mar 28, 2024 · 0 comments

Comments

@xenoterracide
Copy link

xenoterracide commented Mar 28, 2024

This... is... obnoxiousness

/home/xeno/.gradle/wrapper/dists/gradle-8.7-bin/bhs2wmbdwecv87pi65oeuq5iu/gradle-8.7/lib/guava-32.1.2-jre.jar(/com/google/common/base/Optional.class): warning: Cannot find annotation method 'value()' in type 'DoNotMock': class file for com.google.errorprone.annotations.DoNotMock not found
/home/xeno/.gradle/wrapper/dists/gradle-8.7-bin/bhs2wmbdwecv87pi65oeuq5iu/gradle-8.7/lib/guava-32.1.2-jre.jar(/com/google/common/base/Strings.class): warning: Cannot find annotation method 'replacement()' in type 'InlineMe': class file for com.google.errorprone.annotations.InlineMe not found
/home/xeno/.gradle/wrapper/dists/gradle-8.7-bin/bhs2wmbdwecv87pi65oeuq5iu/gradle-8.7/lib/guava-32.1.2-jre.jar(/com/google/common/base/Strings.class): warning: Cannot find annotation method 'value()' in type 'InlineMeValidationDisabled': class file for com.google.errorprone.annotations.InlineMeValidationDisabled not found

here's a snippet of my setup

immutables-bom = "org.immutables:bom:2+"
immutables-annotations = { module = "org.immutables:value-annotations" }
immutables-builder = { module = "org.immutables:builder" }
immutables-core = { module = "org.immutables:value" }
immutables = ["immutables-annotations", "immutables-builder"]
  annotationProcessor(platform(libs.spring.bom))
  annotationProcessor(platform(libs.immutables.bom))
  annotationProcessor(libs.immutables.core)
  annotationProcessor(libs.hibernate.jpa.modelgen)

  compileOnly(platform(libs.immutables.bom))
  compileOnly(libs.bundles.immutables)
  compileOnly(libs.jspecify)
  compileOnly(libs.java.tools)
  compileOnly(libs.jakarta.annotation)

can I get rid of these warnings? more importantly, is there a way to get it not to poke at gradle jars? it might only be warnings, but that just means more stuff I have to sift through to find real problems in my code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant