File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 11import org.apache.tools.ant.filters.ReplaceTokens
2+ import org.codehaus.groovy.tools.shell.util.Preferences.keys
23
34plugins {
45 kotlin(" jvm" ) version " 1.9.22"
@@ -40,13 +41,14 @@ tasks {
4041 }
4142
4243 processResources {
43- filter<ReplaceTokens >(
44- " tokens" to mapOf (
45- " versionName" to project.property(" versionName" ),
46- " versionChannel" to project.property(" versionChannel" ),
47- " versionId" to project.property(" versionId" ),
48- ))
49- outputs.doNotCacheIf(" MakeReplacementsWork" ) { true }
44+ val tokens = " tokens" to mapOf (
45+ " versionName" to project.property(" versionName" ),
46+ " versionChannel" to project.property(" versionChannel" ),
47+ " versionId" to project.property(" versionId" ),
48+ )
49+ filter<ReplaceTokens >(tokens)
50+ val properties = rootProject.ext.properties.filter { tokens.second.contains(it.key) }
51+ inputs.properties(properties)
5052 }
5153}
5254
You can’t perform that action at this time.
0 commit comments