Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring boot upgrade 2.1.2.RELEASE #63

Merged

Conversation

AbhayChandel
Copy link
Contributor

This PR is for issue #12

@AbhayChandel AbhayChandel added the spring springframework and spring-boot label Feb 28, 2019
@AbhayChandel AbhayChandel added this to the release:3.1.0 milestone Feb 28, 2019
Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AbhayChandel 👍 thanks for the PR. It looks great in general. Can you please have a look at the issue I found regarding the BOM and try to rework that. Everything else looks perfect to me.
Thank you so much!

<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<version>2.2</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you remove the version? IMHO this is a mistake. A dependency in depencenyManagement without a version seems pointless to me. Or is this a miss-interpretation of the diffs?

<artifactId>javax.persistence-api</artifactId>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that dependency comes in 2.2+ version via springs BOMs and we do not want to repeat it here, you should remove it entirely.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch @hohwille , javax.persistence-api:2.2 is already defined in spring-boot-depenedencies:2.1.2.RELEASE. So I think it is better to remove
it completely from devon4j-bom. Removed and changes pushed to the PR.

@@ -172,7 +173,7 @@ public void execute(Operation operation, List<String> configurations, String job
SpringApplication app = new SpringApplication(configurationClasses);

// no (web) server needed
app.setWebEnvironment(false);
app.setWebApplicationType(WebApplicationType.NONE);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine fix. However, this reminds me of the fact that our batch still needs rework and polising as this is old fashion style code. But removing the spring XMLs and moving to a modern spring-boot only config is not in the scope of this PR, so all perfectly right.

Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AbhayChandel Thanks. Looking fine now. As we rely on an external dependencyManagement then, can you confirm this:

  • we do not depend on this proprietary dependency anymore org.hibernate.javax.persistence:hibernate-jpa-2.1-api?
  • instead we depend on javax.persistence:javax.persistence-api:2.2, correct?

@AbhayChandel
Copy link
Contributor Author

@AbhayChandel Thanks. Looking fine now. As we rely on an external dependencyManagement then, can you confirm this:

  • we do not depend on this proprietary dependency anymore org.hibernate.javax.persistence:hibernate-jpa-2.1-api?
  • instead we depend on javax.persistence:javax.persistence-api:2.2, correct?

Yes, we are no more depending devon4j on org.hibernate.javax.persistence:hibernate-jpa-2.1-api?. It has been replaced with javax.persistence:javax.persistence-api:2.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spring springframework and spring-boot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants