File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -605,8 +605,8 @@ fun replaceVersion(ver: String) {
605605}
606606
607607tasks.register(" replaceNewVersion" ) {
608+ val releaseVersion = project.properties[" newVersion" ]?.toString() ? : " 0.0.0"
608609 doLast {
609- val releaseVersion = project.properties[" newVersion" ]?.toString() ? : " 0.0.0"
610610 val lastVersions = releaseVersion.substringAfter(" v" ).split(" ." )
611611 val major = lastVersions[0 ].toInt()
612612 val minor = lastVersions[1 ].toInt()
@@ -619,12 +619,12 @@ tasks.register("replaceNewVersion") {
619619}
620620
621621tasks.register(" replaceDraftVersion" ) {
622- doLast {
623- val draftVersion =
624- project.properties[" draftVersion" ]
625- .toString()
626- .substringBefore(" -beta" )
622+ val draftVersion =
623+ project.properties[" draftVersion" ]
624+ .toString()
625+ .substringBefore(" -beta" )
627626
627+ doLast {
628628 println (" Release DraftVersion: $draftVersion " )
629629 replaceVersion(draftVersion)
630630 }
You can’t perform that action at this time.
0 commit comments