79603197

Date: 2025-05-02 10:25:16
Score: 0.5
Natty:
Report link

Adding a bit to @tgdavies comment:

After mvn release:prepare, the settings are stored in a file called release.properties. The version is stored in a line having the form project.rel.<groupId>:<artifactId>=<version>. Assuming group and artifact ids should be ignored. Using grep the line can be extracted using

grep -E '^project.rel\..*=' release.properties

And cut or awk can be used to extract the version. Combined it gives:

grep -E '^project.rel\..*=' release.properties | cut -d'=' -f2
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @tgdavies
Posted by: kap