File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
plugins/gradle-extensions-plugin/src/main/kotlin/com/github/vlsi/gradle Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ class ProjectExtensionsPlugin : Plugin<Project> {
5858 sharedServices.registerIfAbsent(
5959 buildServiceId,
6060 BuildFailurePrintService ::class ,
61- )
61+ ) {
62+ // Older Gradle versions always need configuration action parameter
63+ }
6264 if (GradleVersion .current() >= GradleVersion .version(" 8.1" )) {
6365 reportBuildFailure(target, enableStyle, fullTrace)
6466 } else if (! target.gradle.configurationCacheEnabled) {
@@ -94,11 +96,9 @@ class ProjectExtensionsPlugin : Plugin<Project> {
9496 private fun reportBuildFailure (target : Project , enableStyle : Boolean , fullTrace : Boolean ) {
9597 val flowScopeServices = target.objects.newInstance<FlowScopedServices >()
9698 flowScopeServices.flowScope.always(BuildFailurePrintFlowAction ::class ) {
97- parameters {
98- this .enableStyle.set(enableStyle)
99- this .fullTrace.set(fullTrace)
100- this .buildWorkResult.set(flowScopeServices.flowProviders.buildWorkResult)
101- }
99+ parameters.enableStyle.set(enableStyle)
100+ parameters.fullTrace.set(fullTrace)
101+ parameters.buildWorkResult.set(flowScopeServices.flowProviders.buildWorkResult)
102102 }
103103 }
104104}
You can’t perform that action at this time.
0 commit comments