Gradle Plugin v8.10.0
·
7 commits
to main
since this release
Added
- New
shortenFullyQualifiedTypes()step for Java, which replaces fully-qualified type names with their simple names and adds the imports they need. Best combined withimportOrder()andremoveUnusedImports(). (#2945) - Add embedded lockfiles to Eclipse JDT for every supported version (
4.9through4.40), soeclipse()resolves from Maven Central instead of querying a P2 update site. Versions without an embedded lockfile still fall back to P2 provisioning. (#1996)
Fixed
removeUnusedImportsno longer fails on Javaimport moduledeclarations. (#2890)expandWildcardImports()now builds its type-solver classpath from each Java source set's compile classpath instead of every resolvable configuration. Unrelated configurations (for example generated-code or custom resolvable configs that are not ready yet) are no longer resolved. (#2998)spotlessCheckviolation message now suggests the correct composite/included-build task path (e.g../gradlew :my-utils:spotlessApply) instead of a barespotlessApply/:spotlessApplythat does not select included-build tasks. (#2421)- Parallel multi-project builds no longer intermittently fail with "Cannot fingerprint input property 'stepsInternalEquality': ConfigurationCacheHackList cannot be serialized" / "Failed to provision P2 dependencies" when using
eclipse()(or other P2-backed steps). Subprojects now share one deduping P2 provisioner and P2 queries are serialized process-wide. (#3004)
Changes
- Default
google-java-formatremains1.28.0on JVM 17; bumps to1.30.0on JVM 21+; require at least1.30.0on JVM 25+ forimport modulesupport. - Bump default
eclipseversion to latest4.39->4.40. (#1996) - Bump default
adocfmtversion0.2.0->0.3.1, which adds table formatting support (formatTables,tableLayout,tableMaxLineWidth,tableBlankLines).