Re: Best practice to update dependency versions for *many* projects to the current version

2021-09-03 Thread Jim N
mvn versions:use-latest-versions this plugin does what it says, but also supports overriding specific ranges in specific scopes On Fri, Sep 3, 2021 at 4:05 PM Mantas Gridinas wrote: > It's a matter of preference, really. But I'd like to avoid anything > that I can override via command-line

Re: Best practice to update dependency versions for *many* projects to the current version

2021-09-03 Thread Mantas Gridinas
It's a matter of preference, really. But I'd like to avoid anything that I can override via command-line unless it is documented as a plugin property. We have profiles for that. On Thu, Sep 2, 2021 at 10:52 PM Delany wrote: > > Mantas, why dont you use properties for versions? I found that some

Re: Best practice to update dependency versions for *many* projects to the current version

2021-09-02 Thread Delany
Mantas, why dont you use properties for versions? I found that some plugins don't pick up artifact versions from dependencyManagement, breaking the uniformity that depmng supposedly offers. Properties ensure a single source of truth. Delany On Thu, 2 Sept 2021 at 17:35, Mantas Gridinas wrote: >

Re: Best practice to update dependency versions for *many* projects to the current version

2021-09-02 Thread Nick Stolwijk
Another way of doing this is with automation. There are various tools that update a dependency, run the build and create a PR (or automerge). If you are using Github, you can take a look at dependabot, but if you use standalone tools (like bitbucket and Jenkins) you can look at renovate. With

Re: Best practice to update dependency versions for *many* projects to the current version

2021-09-02 Thread Mantas Gridinas
You might be interested in running the POM per application rather than some global singular POM, since you should retain the ability to update a single application's dependencies without breaking other applications' behavior. I agree that this approach is the more time consuming than having some

Re: Best practice to update dependency versions for *many* projects to the current version

2021-09-02 Thread Nils Breunese
Another option is creating an artifact of type ‘pom’ that consists of just a pom.xml with a section and optionally properties for the versions (so they can easily be overridden when needed), and importing this BOM (bill of materials) artifact in your applications. See spring-boot-dependencies

Re: Best practice to update dependency versions for *many* projects to the current version

2021-09-02 Thread Delany
Hi Bruno, You can define a property in a project all projects inherit from 3.2.4 Then add a dependencyManagement section that sections the version cglib cglib ${dep.cglib.cglib} And use this plugin to check for updates etc

Best practice to update dependency versions for *many* projects to the current version

2021-09-02 Thread Bruno
I have been developing in Java almost from the beginning, but have not used Maven for much more than a few personal test apps. I am now about to migrate nearly 100 applications to Maven and I am a bit concerned about how to manage dependency versions across that many projects in the future.