@@ -93,15 +93,16 @@ val copyGradleScripts = tasks.register<Copy>("copyGradleScripts") {
93
93
group = " build"
94
94
description = " Copies the Gradle source and generated scripts to output directory."
95
95
96
- inputs.property(" project.version" , appVersion)
96
+ val projectVersion = appVersion // local variable required for configuration cache compatibility
97
+ inputs.property(" project.version" , projectVersion)
97
98
98
99
from(layout.projectDirectory.file(" LICENSE" ))
99
100
from(layout.projectDirectory.dir(" release" ).file(" version.txt" ))
100
101
rename(" version.txt" , " VERSION" )
101
102
102
103
from(layout.projectDirectory.dir(" components/scripts/gradle" )) {
103
104
exclude(" gradle-init-scripts" )
104
- filter { line: String -> line.replace(" <HEAD>" , appVersion ) }
105
+ filter { line: String -> line.replace(" <HEAD>" , projectVersion ) }
105
106
}
106
107
from(layout.projectDirectory.dir(" components/scripts/gradle" )) {
107
108
include(" gradle-init-scripts/**" )
@@ -111,7 +112,7 @@ val copyGradleScripts = tasks.register<Copy>("copyGradleScripts") {
111
112
include(" README.md" )
112
113
include(" lib/**" )
113
114
exclude(" lib/cli-parsers" )
114
- filter { line: String -> line.replace(" <HEAD>" , appVersion ) }
115
+ filter { line: String -> line.replace(" <HEAD>" , projectVersion ) }
115
116
}
116
117
from(applyArgbash.map { it.outputDir.file(" lib/cli-parsers/gradle" ) }) {
117
118
into(" lib/" )
@@ -126,20 +127,21 @@ val copyMavenScripts = tasks.register<Copy>("copyMavenScripts") {
126
127
group = " build"
127
128
description = " Copies the Maven source and generated scripts to output directory."
128
129
129
- inputs.property(" project.version" , appVersion)
130
+ val projectVersion = appVersion // local variable required for configuration cache compatibility
131
+ inputs.property(" project.version" , projectVersion)
130
132
131
133
from(layout.projectDirectory.file(" LICENSE" ))
132
134
from(layout.projectDirectory.dir(" release" ).file(" version.txt" ))
133
135
rename(" version.txt" , " VERSION" )
134
136
135
137
from(layout.projectDirectory.dir(" components/scripts/maven" )) {
136
- filter { line: String -> line.replace(" <HEAD>" , appVersion ) }
138
+ filter { line: String -> line.replace(" <HEAD>" , projectVersion ) }
137
139
}
138
140
from(layout.projectDirectory.dir(" components/scripts/" )) {
139
141
include(" README.md" )
140
142
include(" lib/**" )
141
143
exclude(" lib/cli-parsers" )
142
- filter { line: String -> line.replace(" <HEAD>" , appVersion ) }
144
+ filter { line: String -> line.replace(" <HEAD>" , projectVersion ) }
143
145
}
144
146
from(applyArgbash.map { it.outputDir.file(" lib/cli-parsers/maven" ) }) {
145
147
into(" lib/" )
@@ -262,6 +264,10 @@ tasks.named("githubRelease") {
262
264
dependsOn(" createReleaseTag" )
263
265
}
264
266
267
+ tasks.withType(Sign ::class ).configureEach {
268
+ notCompatibleWithConfigurationCache(" $name task does not support configuration caching" )
269
+ }
270
+
265
271
fun gitHubReleaseName (): String {
266
272
if (isDevelopmentRelease) {
267
273
return " Development Build"
0 commit comments