This document lists changes made to the Gradle Java Project API.
Fuller descriptions of all changes can be found below (follow links).
Not all deprecations are listed here, assuming that the deprecated APIs continue to essentially work. For a full deprecation list, please consult the Javadoc.
These API specification versions may be used to indicate that a module requires a certain API feature in order to function. For example, if you see here a feature you need which is labelled 1.20, your manifest should contain in its main attributes the line:
OpenIDE-Module-Module-Dependencies: org.netbeans.modules.gradle.java/0 > 1.20
org.netbeans.modules.gradle.java.api.GradleJavaSourceSet
org.netbeans.modules.gradle.java.spi.support.JavaToolchainSupport
org.netbeans.modules.gradle.java.api.output.Location
org.netbeans.modules.gradle.java.api.ProjectActions
GradleJavaSourceSet
JavaToolchainSupport
; made by: lkishalmi
Gradle 6.7 introduced Java Toolchains to separate Gradle Java Runtime
and the Java used for compilation (and other Java execution).
GradleJavaSourceSet.getCompilerJavaHome
has been added to
return the Java Home of the JDK in use for compilation.
In addition JavaToolchainSsupport
is provided in order to be easily work with the JDK home directories.
GradleJavaSourceSet
; made by: sdedic
Location
; made by: ratcashdev; issues: NETBEANS-6041
Location
is now capabe to represent java code location inside nested classes as well.
GradleJavaSourceSet
; made by: lkishalmi; issues: NETBEANS-5541
GradleJavaSourceSet
methods getCompileConfigurationName()
and getRuntimeConfigurationName()
were deprecated as Gradle 7.0 does no longer supports them. They return null
on Gradle 7.0.
ProjectActions
; made by: sdedic; issues: NETBEANS-5482
javaExec.jvmArgs
and javaExec.args
tokens in action mapping that can be used to pass explicit JVM and application
parameters to user process started by Gradle build. For more details, see
ProjectActions.TOKEN_JAVAEXEC_JVMARGS
GradleJavaSourceSet
; made by: jpesek; issues: NETBEANS-5050
GradleJavaSourceSet
; made by: lkishalmi; issues: NETBEANS-4278
GradleJavaSourceSet
; made by: lkishalmi; issues: NETBEANS-2941