Open aplatypus opened 7 years ago
The JDK list in the project properties are grouped by JDK version number, so I guess that 1.8 disapears because you have the same directory selected for JDK 8 as for 7. This hypotesis is consistent with what you see in the global settings because JDKs are saved based on their root folder (so the plugin won't really remember the order if they are essentially the same). Also, the priority list is simply meant for the plugin to distinguish between JDKs with the same version number, it will not affect JDKs with different version number.
The Java (JDK) platforms on Netbeans are ALL in different directories, for example.
Now, JDK 1.8 doesn't even show on the list sometimes. I have no idea what "... because you have the same directory selected for JDK 8 as for 7", is meant to say. They are definitely different.
If the "Platform Priority" doesn't do anything, then it should be removed from the panel. It is most confusing to have a button that does nothing.
Of course that begs the question of HOW one is able to select a different platform with Gradle.
Choosing platforms for Ant and Maven projects has always performed effortlessly.
A solution is needed. Can we delete some cache or user directory setting so things will work (correctly)?
Platform priority is necessary when you have multiple JDKs with the same version. It is just not important for you.
Simply selecting the JDK in the project properties should work, and I have never seen it not to work. Can you send me your config/Preferences/org/netbeans/gradle/project-defaults.xml file if I can spot something in it?
Still I believe that NB reports the same version for multiple JDKs. Anyway, I have pushed some changes showing the version number of the platforms as the plugin sees it. Can you (build the plugin from the sources and) check what is displayed in the platform priority list?
Hi ...
The Gradle plugin is not letting me tell Netbeans to use Java 8. I tried to two obvious approaches to correct this but for some reason the platform Gradle uses limits me to Java 1.7. It is a little difficult to believe really.
Desired result:
The
build.gradle
file has:In addition when the program runs it appears to be picking up the designate Java 1.7 source, see:
The critical point here is that
gradle build
successfully builds from the command line but Netbeans is showing errors for Java 8 structures and it will not run because Netbeans thinks there are errors.First Approach
Result:
Second Approach
Attempting to set "Global Defaults" profile:
Result:
The net result is there appears to be NO way to change platform so that it "sticks". Unreliable and introducing errors.