Is it possible to search libraries for classes compiled with Java 8?
Answered
We have hundreds of libraries, some brought in transitively with gradle. One of them has classes compiled with Java 8. Our project is set to Java 7. Is there a way to search all of the .class files in the libraries for those that are compiled with Java 8?
Please sign in to leave a comment.
IntelliJ IDEA doesn't have this feature, you can use some Unix command line magic to traverse all the .class files, invoke javap on them and grep for the major version in the output.
Thanks Serge, that's what I wanted to avoid. How do I submit that request? It seems like that would be a good feature. When the project is tied to Java 7 and we're running on 7, it'd be great if IJ told us we have a library needing 8 or 9, etc.
Requests can be submitted at https://youtrack.jetbrains.com/issues/IDEA.
Thank you. I submitted https://youtrack.jetbrains.com/issue/IDEA-173956 for this.