@@ -93,16 +93,15 @@ val copyGradleScripts = tasks.register<Copy>("copyGradleScripts") {
9393 group = " build"
9494 description = " Copies the Gradle source and generated scripts to output directory."
9595
96- val projectVersion = project.version.toString()
97- inputs.property(" project.version" , projectVersion)
96+ inputs.property(" project.version" , appVersion)
9897
9998 from(layout.projectDirectory.file(" LICENSE" ))
10099 from(layout.projectDirectory.dir(" release" ).file(" version.txt" ))
101100 rename(" version.txt" , " VERSION" )
102101
103102 from(layout.projectDirectory.dir(" components/scripts/gradle" )) {
104103 exclude(" gradle-init-scripts" )
105- filter { line: String -> line.replace(" <HEAD>" , projectVersion ) }
104+ filter { line: String -> line.replace(" <HEAD>" , appVersion ) }
106105 }
107106 from(layout.projectDirectory.dir(" components/scripts/gradle" )) {
108107 include(" gradle-init-scripts/**" )
@@ -112,7 +111,7 @@ val copyGradleScripts = tasks.register<Copy>("copyGradleScripts") {
112111 include(" README.md" )
113112 include(" lib/**" )
114113 exclude(" lib/cli-parsers" )
115- filter { line: String -> line.replace(" <HEAD>" , projectVersion ) }
114+ filter { line: String -> line.replace(" <HEAD>" , appVersion ) }
116115 }
117116 from(applyArgbash.map { it.outputDir.file(" lib/cli-parsers/gradle" ) }) {
118117 into(" lib/" )
@@ -127,21 +126,20 @@ val copyMavenScripts = tasks.register<Copy>("copyMavenScripts") {
127126 group = " build"
128127 description = " Copies the Maven source and generated scripts to output directory."
129128
130- val projectVersion = project.version.toString()
131- inputs.property(" project.version" , projectVersion)
129+ inputs.property(" project.version" , appVersion)
132130
133131 from(layout.projectDirectory.file(" LICENSE" ))
134132 from(layout.projectDirectory.dir(" release" ).file(" version.txt" ))
135133 rename(" version.txt" , " VERSION" )
136134
137135 from(layout.projectDirectory.dir(" components/scripts/maven" )) {
138- filter { line: String -> line.replace(" <HEAD>" , projectVersion ) }
136+ filter { line: String -> line.replace(" <HEAD>" , appVersion ) }
139137 }
140138 from(layout.projectDirectory.dir(" components/scripts/" )) {
141139 include(" README.md" )
142140 include(" lib/**" )
143141 exclude(" lib/cli-parsers" )
144- filter { line: String -> line.replace(" <HEAD>" , projectVersion ) }
142+ filter { line: String -> line.replace(" <HEAD>" , appVersion ) }
145143 }
146144 from(applyArgbash.map { it.outputDir.file(" lib/cli-parsers/maven" ) }) {
147145 into(" lib/" )
0 commit comments