We are excited to announce Gradle 8.14-milestone-5 (released 2025-03-20).
This release features 1, 2, ... n, and more.
We would like to thank the following community members for their contributions to this release of Gradle:
Be sure to check out the public roadmap for insight into what's planned for future releases.
Switch your build to use Gradle 8.14-milestone-5 by updating the Wrapper in your project:
./gradlew wrapper --gradle-version=8.14-milestone-5 && ./gradlew wrapper
See the Gradle 8.x upgrade guide to learn about deprecations, breaking changes, and other considerations when upgrading to Gradle 8.14-milestone-5.
For Java, Groovy, Kotlin, and Android compatibility, see the full compatibility notes.
Gradle provides rich APIs for plugin authors and build engineers to develop custom build logic.
Similar to tasks, configurations are now realized only when necessary.
Starting with this release, applying the base plugin (or any plugin that applies it, such as JVM plugins) no longer realizes all configurations declared using register or the incubating role-based factory methods.
This change can reduce configuration time and memory usage in some builds.
To leverage these improvements, declare configurations using the register method instead of the create method:
configurations {
// Instead of using `create`
create("myEagerConfiguration")
// Use `register` to avoid realizing the configuration
register("myLazyConfiguration")
}
Gradle now supports Java 24 for compiling, testing, and starting Java programs. You can select the Java language version using toolchains.
However, Gradle itself cannot run on Java 24 yet, as Groovy does not fully support JDK 24. Future versions are expected to address this.
In Gradle 8.13, we introduced additional data support in the public-facing Problems API, allowing users to attach extra context to a problem with some limitations. In this release, those limitations have been removed, enabling the inclusion of arbitrary data in a problem.
This enhancement is particularly useful for IDE implementors who manage both the plugin code and its integration via the Tooling API.
By leveraging this feature, you can provide richer context for problems that are not fully captured by the existing properties.
For example, a worker task may now include more detailed diagnostic information:
public abstract class ProblemWorkerTask implements WorkAction<ProblemsWorkerTaskParameter> {
// Use the Problems interface to report problems
@Inject
public abstract Problems getProblems();
// Use the ObjectFactory to create instances of classes for composition
@Inject
public abstract ObjectFactory getObjectFactory();
@Override
public void execute() {
ProblemId problemId = ProblemId.create("type", "label", ProblemGroup.create("generic", "Generic"));
getProblems().getReporter().report(problemId, problem -> problem
.additionalData(SomeData.class, dataInstance -> {
dataInstance.getSome().set("some"); // Provider API properties can be used
dataInstance.setName("someData"); // Getters and setters can be used
dataInstance.setNames(Collections.singletonList("someMoreData")); // Collections can be used
SomeOtherData compositionDataInstance = getObjectFactory().newInstance(SomeOtherData.class);
compositionDataInstance.setOtherName("otherName");
dataInstance.setOtherData(compositionDataInstance); // Composition can be used
})
);
}
}
The data interfaces for this example look as follows:
import org.gradle.api.problems.AdditionalData;
import org.gradle.api.provider.Property;
import java.util.List;
public interface SomeData extends AdditionalData {
Property<String> getSome();
String getName();
void setName(String name);
List<String> getNames();
void setNames(List<String> names);
SomeOtherData getOtherData();
void setOtherData(SomeOtherData otherData);
}
public interface SomeOtherData {
String getOtherName();
void setOtherName(String name);
}
The CustomAdditionalData.get() method allows you to retrieve additional data using a specified view type.
On the TAPI side, retrieving and using the additional data might look like this:
void someMethod(List<Problem> problems) {
SomeDataView view = problems.get(0).getAdditionalData().get(SomeDataView.class);
System.out.println(view.getName());
System.out.println(view.getNames().get(0));
System.out.println(view.getOtherData().getOtherName());
}
The retrieved data can be structured using view interfaces like the following:
interface SomeOtherDataView {
String getOtherName();
}
interface SomeDataView {
String getSome();
String getName();
List<String> getNames();
SomeOtherDataView getOtherData();
}
Promoted features are features that were incubating in previous versions of Gradle but are now supported and subject to backward compatibility. See the User Manual section on the "Feature Lifecycle" for more information.
The following are the features that have been promoted in this Gradle release.
Known issues are problems that were discovered post-release that are directly related to changes made in this release.
We love getting contributions from the Gradle community. For information on contributing, please see gradle.org/contribute.
If you find a problem with this release, please file a bug on GitHub Issues adhering to our issue guidelines. If you're not sure if you're encountering a bug, please use the forum.
We hope you will build happiness with Gradle, and we look forward to your feedback via Twitter or on GitHub.