Which repositories contain recent versions of javac2?
Answered
I have inherited a project that uses Jetbrains' javac2 compiler with Gradle, apparently following the instructions from this blog post. It is using javac2 13.1, but I can't find that Jar file anywhere. The best I could find is that MavenCentral has javac2 7.0.3.
Did the package name change? Is there some other repository where I can download this from? I'd like to be able to use it, but of course I can't if it isn't available for download.
Please sign in to leave a comment.
See https://youtrack.jetbrains.com/issue/IDEABKL-6689 and https://youtrack.jetbrains.com/issue/IDEA-149668.
Thank you for the rapid response! The first link is for a Maven plugin that runs the compiler, which is not something we can use with Gradle. The second post is exactly what I'm looking for though; publishing the Jar on MavenCentral or another repository. I'm really disappointed that there has been no action on it in a year and a half though. I would think it would be a pretty simple thing to do.
Aside from voting for that issue, is there anything I can do to help encourage it to be worked on sooner?
> Aside from voting for that issue, is there anything I can do to help encourage it to be worked on sooner?
I doubt it, sorry about that.
`javac2.jar` is still in IDEA distributions, it's located at `lib/javac2.jar`. Here is an example on how you can use it: https://github.com/JetBrains/gradle-intellij-plugin/blob/master/src/main/groovy/org/jetbrains/intellij/tasks/IntelliJInstrumentCodeTask.groovy#L38