DP-3T / dp3t-sdk-backend

The backend implementation for DP3T
Mozilla Public License 2.0
198 stars 88 forks source link

Maven dependency and plugin management optimisation #248

Closed iCesofT closed 3 years ago

iCesofT commented 4 years ago

Hi,

I create this PR to get better Maven configuration with dependency and plugin managements.

You can close PR # 143 that I did some time ago.

Kind regards

ineiti commented 3 years ago

Java-newbie here: why are you adding these dependencies, while they were not in the original pom-file?

iCesofT commented 3 years ago

They aren't in original pom file but are dependencies:

If you compile from command-line, you get some Maven warnings regarding missing versions ("build.plugins.plugin.version") or duplicate declaration of plugin (jacoco-maven-plugin): [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

And the most important thing... is about issues: https://github.com/DP-3T/dp3t-sdk-backend/issues/249

ineiti commented 3 years ago

OK - sounds good. Can you look how to get the build running again?

iCesofT commented 3 years ago

It's strange. Maven compiles but in remote Sonar it doesn't :?

jopereira commented 3 years ago

It's strange. Maven compiles but in remote Sonar it doesn't :?

This might be a sonar bug with pull requests from forked repos. See for instance: https://github.com/corona-warn-app/cwa-server/issues/237

martinalig commented 3 years ago

@iCesofT Thanks for your inputs. Can we not just upgrade to Spring Boot 2.3.4.RELEASE ? By doing so, the above dependenciees are also updated. Spring Boot does a good job in maintaining up to date dependencies, so I think if possible, it easier to just go with the latest Spring Boot version. What do you think?

iCesofT commented 3 years ago

I didn't check it. I tried before with 2.3.X and it didn't pass tests 🧐

iCesofT commented 3 years ago

I already checked it. It doesn't pass tests with 2.3.4 but works with 2.2.10 and fixes the issues.

iCesofT commented 3 years ago

I will create a new pull request with Spring Boot 2.2.10 so I close this PR.