It would be nice to be able to either optionally disable loading gradle from the gradle wrapper and always using system gradle (if higher then 2.6) so in cases where the gradle project is using a wrapper with a version < 2.6 the java plugin can still function.
Can't use downstream plugins (checkstyle/run tests)
Redhat plugin can optionally use system gradle always to at least allow some functionality on gradle 1.12 projects that use the wrapper
I found this out while initially developing a project where it did not have the gradle wrapper with my gradle 5 system gradle version. I was able to run/debug tests and use checkstyle with no problems. I then added the wrapper, to find that afterwards i could not do either of these things because my gradle version (in the wrapper) was too low.
Shouldn't be too difficult to implement
maybe also "java.gradlePath" ?!
"java.gradlePath": "system" //use global installed gradle
"java.gradlePath": "wrapper" //use workspace gradle wrapper
"java.gradlePath": "C:/Gradle/gradle-5.2.1" //use custom gradle path
//i'm edited comment
gradle path can be specified in "${opened folder}/.settings/org.eclipse.buildship.core.prefs", in line connection.gradle.distribution= set GRADLE_DISTRIBUTION(LOCAL_INSTALLATION(PATH_TO_GRADLE)) for using global gradle (or custom gradle path), or GRADLE_DISTRIBUTION(WRAPPER) for using wrapper in your folder
@SupinePandora43 you can try the following property:
"java.jdt.ls.vmargs": "-DGRADLE_HOME=C:/Gradle/gradle-5.2.1 -noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication",
@snjeza i don't need that, i configured gradle java home in gradle.properties, gradle path (WRAPPER) in .pref file. because minecraft forge dont support versions newer gradle 4.9, java 10. i'm got jdk 12 and jdk 8, gradle 5.2.1 and 4.9.0
Most helpful comment
maybe also "java.gradlePath" ?!
"java.gradlePath": "system" //use global installed gradle
"java.gradlePath": "wrapper" //use workspace gradle wrapper
"java.gradlePath": "C:/Gradle/gradle-5.2.1" //use custom gradle path