Skip to content
Attila Kelemen edited this page May 24, 2015 · 2 revisions

Source file encoding

As the name suggests, source files will be assumed to have this character encoding. The factory default is "UTF-8".

Gradle home

The Gradle distribution used to execute Gradle tasks. Click the "Change" button to pop-up a dialog to choose the location of Gradle

  1. Autodetect from the Gradle wrapper: The plugin will use the Gradle binaries defined by the Gradle wrapper.
  2. Download selected version from Gradleware: The plugin will try to download the requested version of Gradle from Gradleware's website.
  3. Download from the given URL: You can specify the URL of the zip file containing the Gradle distribution. For example: "http://services.gradle.org/distributions/gradle-2.2-bin.zip".
  4. Use the given local folder: You can specify the location of the local directory containing the Gradle distribution. This is not recommended because you will need to specify an absolute path here and it might not be a good practice to specify absolute path in the project properties.

The factory default for this property is the Gradle distribution specified in the global settings.

Platform for build scripts

The JDK on the classpath of the build scripts when executing tasks or loading the project. The factory default for this property is the JDK specified for the scripts in the global settings.

Target platform

The JDK specified for the classpath of the projects. As of 1.2.0, this property is only for editing the sources, running Gradle tasks will ignore the value of this property. This might change in the future however. If you allowed so in the global settings or you are using Gradle 1.9 or above, then default value is the one specified by the build script (for this to surely work, you have to use the idea plugin). If you didn't allow to rely on the platform defined by the build script, then the default is the JDK used to load NetBeans.

Source level

The source compatibility level for Java source files. This is used only by the editor to allow or disallow language constructs (such as switch over strings). If you allowed so in the global settings or you are using Gradle 1.9 or above, then default value is the one specified by the build script (for this to surely work, you have to use the idea plugin). If you didn't allow to rely on the source level specified in the build script, then the default value for this property is the version of the specified target platform (this means, that you usually don't need to set the source level explicitly).

Init script to apply

An init script to be applied every time NetBeans requests Gradle to evaluate the build scripts (this includes both task execution and project model parsing).

Platform preference

This button opens up a window the specify the preference order of installed JDKs. The preference order is used to choose the appropriate JDKs when there are mulitple JDKS with the same version number. Note that these settings are global and not project specific.