diff --git a/subprojects/docs/src/docs/release/notes-template.md b/subprojects/docs/src/docs/release/notes-template.md index 4243b090210f3..662cc19424432 100644 --- a/subprojects/docs/src/docs/release/notes-template.md +++ b/subprojects/docs/src/docs/release/notes-template.md @@ -26,7 +26,7 @@ The following are the features that have been promoted in this Gradle release. ## Deprecations Features that have become superseded or irrelevant due to the natural evolution of Gradle become *deprecated*, and scheduled to be removed -in the next major Gradle version (Gradle 4.0). See the User guide section on the “[Feature Lifecycle](userguide/feature_lifecycle.html)” for more information. +in the next major Gradle version (Gradle 5.0). See the User guide section on the “[Feature Lifecycle](userguide/feature_lifecycle.html)” for more information. The following are the newly deprecated items in this Gradle release. If you have concerns about a deprecation, please raise it via the [Gradle Forums](https://discuss.gradle.org). diff --git a/subprojects/docs/src/docs/release/notes.md b/subprojects/docs/src/docs/release/notes.md index 134b9e20e1860..ec06a1ec59eab 100644 --- a/subprojects/docs/src/docs/release/notes.md +++ b/subprojects/docs/src/docs/release/notes.md @@ -1,3 +1,7 @@ +The Gradle team is pleased to announce the release of Gradle 4.1. + +This release now supports running Gradle on the most recent JDK 9 release (b170+). It also optimizes startup speed, positively affecting the execution time of every build. + ## New and noteworthy Here are the new features introduced in this Gradle release. @@ -6,9 +10,23 @@ Here are the new features introduced in this Gradle release. IMPORTANT: if this is a patch release, ensure that a prominent link is included in the foreword to all releases of the same minor stream. Add--> - + +### Faster Gradle command line client + +The Gradle command line client now starts up ~200ms faster, speeding up every build. + +### Continuous build now works with composite builds + +Gradle's [continuous build feature](userguide/continuous_build.html) now works with [composite builds](userguide/composite_builds.html). Gradle will automatically detect changes to any input from any build and rebuild the appropriate pieces. + +### CodeNarc plugin supports report format 'console' + +The CodeNarc plugin now supports outputting reports directly to the console through the `console` report format. +``` +codenarc { + reportFormat = 'console' +} +``` ### APIs to define calculated task input and output locations @@ -34,7 +52,7 @@ The following are the features that have been promoted in this Gradle release. ## Deprecations Features that have become superseded or irrelevant due to the natural evolution of Gradle become *deprecated*, and scheduled to be removed -in the next major Gradle version (Gradle 4.0). See the User guide section on the “[Feature Lifecycle](userguide/feature_lifecycle.html)” for more information. +in the next major Gradle version (Gradle 5.0). See the User guide section on the “[Feature Lifecycle](userguide/feature_lifecycle.html)” for more information. The following are the newly deprecated items in this Gradle release. If you have concerns about a deprecation, please raise it via the [Gradle Forums](https://discuss.gradle.org). @@ -44,14 +62,21 @@ The following are the newly deprecated items in this Gradle release. If you have ## Potential breaking changes - +### Changes to handling of project dependencies from a project that does not use the Java plugin to a project that does + +When a project that does not use the Java plugin has a project dependency on a project that uses the Java plugin, either directly or indirectly via another plugin, then the `runtimeElements` configuration of the target project will be selected. Previous versions of Gradle would select the `default` configuration in this case. + +Previous versions of Gradle would select the `runtimeElements` when both projects are using the Java plugin. + +This change makes the selection behaviour consistent so that the `runtimeElements` configuration is selected regardless of whether the consuming project uses the Java plugin or not. This is also consistent with the selection when the consuming project is using one of the Android plugins. ## External contributions We would like to thank the following community members for making contributions to this release of Gradle. + - [Jörn Huxhorn](https://github.com/huxi) - Replace uses of `Stack` with `ArrayDeque` (#771) + - [Björn Kautler](https://github.com/Vampire) - Fix WTP component version (#2076) + - [Bo Zhang](https://github.com/blindpirate) - Add support for 'console' output type of CodeNarc plugin (#2170) - [Bo Zhang](https://github.com/blindpirate) - Fix infinite loop when using `Path` for task property (#1973) - [Marcin Zajączkowski](https://github.com/szpak) - Add @since tag to Project.findProperty() - [Seth Jackson](https://github.com/sethjackson) - Fix the default daemon JVM args on Java 8