Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Merging changes for Third party dependencies upgrade #665

Merged
merged 3 commits into from
Aug 10, 2018

Conversation

AbhayChandel
Copy link
Contributor

@AbhayChandel AbhayChandel commented Aug 10, 2018

Copy link
Contributor

@vapadwal vapadwal left a comment

Choose a reason for hiding this comment

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

Working fine so approving it

@AbhayChandel AbhayChandel merged commit a2b1bb1 into oasp:develop Aug 10, 2018
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.

already merged what is fine. I still need to check if this requires some rework or not.

@@ -108,12 +108,6 @@
<artifactId>cglib</artifactId>
<version>3.2.5</version>
</dependency>
<!-- Support for dynamic and type-safe JPA queries -->
Copy link
Member

@hohwille hohwille Aug 10, 2018

Choose a reason for hiding this comment

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

Why was this query-dsl dependency removed from BOM? Does the new spring-boot parent already come with a more recent version of this dependency?

Copy link
Member

Choose a reason for hiding this comment

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

I verified that 4.1.4 is used. Seems fine.

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.

some more things. Looks good in general but the commented changes should be double-checked and might need some rework.

@@ -51,6 +51,10 @@
<artifactId>oasp4j-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
Copy link
Member

Choose a reason for hiding this comment

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

why do we need that for logging module? IMHO there is no need to couple this with spring.
Maybe just a test dependency and forgot to add the scope?

@@ -48,20 +48,20 @@ public BinaryObjectEto saveBinaryObject(Blob data, BinaryObjectEto binaryObjectE
@Override
public void deleteBinaryObject(Long binaryObjectId) {

this.binaryObjectRepository.delete(binaryObjectId);
this.binaryObjectRepository.deleteById(binaryObjectId);
Copy link
Member

Choose a reason for hiding this comment

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

Woah. So spring-data changed their API in an incompatible way? That is not so great to here. I will double check...

Copy link
Member

Choose a reason for hiding this comment

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

Verified. Nothing we can do about it but good that we have these upgrades before we actually spread out spring-data support in devon.

/**
* This method provide a new instance of {@code DelegatingPasswordEncoder}}
*
* @return the newly create {@code DelegatingPasswordEncoder}}
Copy link
Member

Choose a reason for hiding this comment

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

double occurance of closing curly brace ;)

@@ -59,7 +59,7 @@ spring.batch.job.enabled=false

# Flyway for Database Setup and Migrations
#if ($dbType == 'mariadb')
flyway.locations=classpath:db/migration,classpath:db/type/mysql
#spring.flyway.locations=classpath:db/migration,classpath:db/type/mysql
Copy link
Member

Choose a reason for hiding this comment

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

why was that commented out? Mistake or on purpose?

Copy link
Member

Choose a reason for hiding this comment

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

Verified. Indeed a small mistake. Big change and aspect not covered by tests. I will fix this with a PR.

@@ -29,10 +29,6 @@
<version>${project.version}</version>
</dependency>
#end
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
Copy link
Member

Choose a reason for hiding this comment

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

was that redundant? Already in core I guess. Fine then. Thanks for cleanup.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

jep referenced in core and was temporary added as described in #664. All perfect.

@@ -112,6 +108,7 @@
<configuration>
<packagingExcludes>WEB-INF/classes/config/application.properties</packagingExcludes>
<warName>${project.artifactId}</warName>
<failOnMissingWebXml>false</failOnMissingWebXml>
Copy link
Member

Choose a reason for hiding this comment

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

I do not get why this had to be added? Did we downgrade the maven-war-plugin or what?
In such case it is always very helpful to add an XML comment with an hyperlink or a rationale.

Copy link
Member

Choose a reason for hiding this comment

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

Effective version of maven-war-plugin now is 3.2.0 but that version was also used in the archetype as released before. I am quite sure there is a good reason for this change but I can not get it.

@hohwille hohwille mentioned this pull request Aug 10, 2018

}

@Override
public BinaryObjectEto findBinaryObject(Long binaryObjectId) {

return getBeanMapper().map(this.binaryObjectRepository.findOne(binaryObjectId), BinaryObjectEto.class);
return getBeanMapper().map(this.binaryObjectRepository.find(binaryObjectId), BinaryObjectEto.class);
Copy link
Member

Choose a reason for hiding this comment

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

As it seems the spring-data guys have renamed findOne to getOne. After things have been spread out to the wild these breaking API changes will not amuse the projects I assume. We should consider this for devonfw-forge/devcon#135

@hohwille
Copy link
Member

So I am now complete with the review and provided PR #668 for further improvements.
This was really a complex tasks with breaking changes and lots of research (I assume).
Thanks for this great PR!

AbhayChandel added a commit that referenced this pull request Aug 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants