Does anyone know why IntelliJ adds gradle-api to t...
# random
c
Does anyone know why IntelliJ adds gradle-api to the classpath when running main method from the IDE? This screws up launching spring boot apps. I've created an issue (link below). Has anyone encountered this and maybe someone knows a workaround/fix? I couldn't find anything on the web, except suggestions to exclude logging dependencies (which would be wrong on so many levels, IMO). https://youtrack.jetbrains.com/issue/IDEA-181700
s
maybe you can delegate your IDEA build action to gradle.
c
I've tried that, but it's slow. Instead now I start it from IJ, it fails, I copy the command, remove gradle-api from the classpass spec and run the modified command from the command line, then it works as expected and recompiles are several times faster than when delegated to gradle.
s
did you enable incrementa compile?
c
yes I have it enabled, but that is completely unrelated.