Skip to content

Commit

Permalink
Update readme file during release
Browse files Browse the repository at this point in the history
  • Loading branch information
jmini committed Nov 29, 2024
1 parent 7dfec10 commit d648089
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ def updateLastVersionValueTask = tasks.register('updateLastVersionValue') {
def newVersion = project.findProperty('release.releaseVersion') ?: version.replace('-SNAPSHOT', '')
content = content.replaceAll("lastVersion=[0-9a-z\\.\\-]+", "lastVersion=" + newVersion)
propertiesFile.text = content

def readmeFile = file('README.md')
def readme = readmeFile.text
readme = readme.replace(lastVersion, newVersion)
readmeFile.text = readme
}
}

Expand Down

0 comments on commit d648089

Please sign in to comment.