Changed
-
Both plugins are now fully compatible with the
Gradle configuration cache (#107)manifest.jsonandhybris/bin/platform/build.numberare tracked as configuration inputs via
providers.fileContents; the cache is invalidated automatically when either file changes- All task types (
GlobClean,HybrisAntTask,UnpackPlatformSparseTask,GenerateLocalextensions,
PatchLocalExtensions,ValidateManifest) are annotated with@DisableCachingByDefaultor@CacheableTask
as appropriate
-
BREAKING
CCv2Extension.manifestis now aProvider<Manifest>instead of a directManifestobject (#107)Anywhere you previously accessed manifest data directly, you must now either use
.map { }to derive a lazy value,
or call.get()inside a task action:// before (5.0.x / 5.0.2) val ver = CCV2.manifest.effectiveVersion // after - lazy via .map { } val ver: Provider<String> = CCV2.manifest.map { it.effectiveVersion } // after - resolve in doLast tasks.register("example") { val manifest = CCV2.manifest doLast { logger.lifecycle("Version: {}", manifest.get().effectiveVersion) } }
Additional details in the docs
-
BREAKING Minimum required Java version bumped from 17 to 21
Fixed
- Task ordering issues related to
cleanPlatform.unpack*tasks will now always run aftercleanPlatform;
cleanPlatformIfVersionChangedwill be skipped.