0

I have a spring boot application. I have a CICD pipeline that helps to deploy my application to QA env.

So my problem is this. My application requires a jar file that is generated during my pipeline. I would want to be able to get that jar file based on version number and used it in my app.

I have this idea of getting gitlab to update my pom version of the library that i am using to the version number ( it would usually be in sync with this app version number) and then get my application to read the version number.

Is this possible?

I saw this link for retrieving version number but i am unsure how to dynamically update the pom.xml version

shadow
  • 718
  • 1
  • 13
  • 29

1 Answers1

0

You can use the linked question to retrieve the version.

Then you can use the versions maven plugin to update the dependency version:

https://stackoverflow.com/a/48913512/927493

J Fabian Meier
  • 30,532
  • 9
  • 61
  • 119