What IDE is recommended to debug gradle source?

I’m using IntelliJ but getting weird error saying
Cannot resolve “import javax.annotation.Nullable;”

Which, I can’t make sense of. JDK is absolutely set.
New photo by Hoa Phan

The class javax.annotation.Nullable is not part of the JDK. It’s in a JAR file called jsr305-1.3.9.jar from the Maven coordinates com.google.code.findbugs:jsr305:1.3.9. Make sure that file was successfully downloaded and is showing up correctly in the External Dependencies. This should happen automatically, but if something failed, confirming that file is a good place to start.

1 Like

what about the one inside gradle-api.jar ? That one is there, listed in External Libraries of IntelliJ, and https://github.com/gradle/gradle/blob/master/subprojects/core/core.gradle

That is generated for use at runtime. It’s not the compile dependency for the Gradle project.

The build-option project should have very few dependencies, but one should be jsr305.