It contains: -source 14 -target 14 Looks like I'll have to do some digging.
Thanks On Tue, Apr 14, 2020 at 2:38 AM Kevin Rushforth <kevin.rushfo...@oracle.com> wrote: > Not sure, but you might check here: > > modules/javafx.base/build/tmp/compileJava/java-compiler-args.txt > > That's the list of args that gradle generates to pass to javac (using > @.../java-compiler-args.txt) > > -- Kevin > > On 4/13/2020 4:10 PM, Nir Lisker wrote: > > Thanks, yes, testing on JavaFX itself. > I made these changes. I'm getting "error: invalid source release: 14" when > trying to build. These are the settings that are output during the task: > > Gradle Distribution: Gradle wrapper from target build > Gradle Version: 6.3 > Java Home: C:\Program Files\Java\jdk-14 > JVM Arguments: None > Program Arguments: None > Build Scans Enabled: false > Offline Mode Enabled: false > Gradle Tasks: build > > This is the full error message: > > error: invalid source release: 14 > Usage: javac <options> <source files> > use --help for a list of possible options > > FAILURE: Build failed with an exception. > > * What went wrong: > Execution failed for task ':base:compileJava'. > > Compilation failed with exit code 2; see the compiler error output for > details. > > On Tue, Apr 14, 2020 at 2:00 AM Kevin Rushforth < > kevin.rushfo...@oracle.com> wrote: > >> I guess you mean modifying the FX build in your local repo so that you >> can test the use of JDK 14 preview features in FX itself? (if you were >> just trying to use it from your app you wouldn't need any build changes >> in FX). At a minimum you would need to add the "--enable-preview" flag >> to compile.options.compilerArgs, and change "sourceCompatibility" from >> "11" to "14". Not sure if anything more is needed. I've never tried it. >> >> -- Kevin >> >> >> On 4/13/2020 1:49 PM, Nir Lisker wrote: >> > Hi, >> > >> > I would like to test the preview features in Java 14 on JavaFX. What >> > changes should I make in the build files to get it working? >> > >> > - Nir >> >> >