Skip to content

Commit

Permalink
[ci] Fixes release version update script (deepjavalibrary#3353)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored Jul 19, 2024
1 parent a5ee8a6 commit 0c7dee5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions buildSrc/src/main/kotlin/ai/djl/release.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ tasks {
for (file in collection) {
file.text = file.text.replace("/${previousVersion}/", "/${djlVersion}/")
.replace(">${previousVersion}<", ">${djlVersion}<")
.replace(">${previousVersion}-SNAPSHOT<", ">${djlVersion}-SNAPSHOT<")
.replace("\"${previousVersion}\"", "\"${djlVersion}\"")
.replace("-${previousVersion}", "-${djlVersion}")
.replace(" ${previousVersion}`", " ${djlVersion}`")
.replace("_${previousVersion}", "_${djlVersion}")
.replace(":${previousVersion}([\"\\\\\\n])", ":${djlVersion}\$1")
.replace(Regex(":${previousVersion}([\"\\\\\\n])"), ":${djlVersion}\$1")
}
}
}
Expand Down

0 comments on commit 0c7dee5

Please sign in to comment.