Skip to content

Commit cf5c997

Browse files
committed
BAEL-10957 Fix Jhipster Module Tests and Module Renaming
-Added hibernate-java8 dependency in jhipster parent project to fix mapping of Java8 Date, Time types to database types and thereby fix all the tests that were failing due to this
1 parent 1f933b8 commit cf5c997

2 files changed

Lines changed: 47 additions & 32 deletions

File tree

‎jhipster/jhipster-monolithic/pom.xml‎

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<artifactId>jhipster-monolithic</artifactId>
55
<packaging>war</packaging>
6-
<name>jhipster-monolithic</name>
6+
<name>jhipster-monolithic</name>
77
<description>JHipster Monolithic Application</description>
88

99
<parent>
@@ -87,23 +87,23 @@
8787
<dependency>
8888
<groupId>io.dropwizard.metrics</groupId>
8989
<artifactId>metrics-annotation</artifactId>
90-
</dependency>
90+
</dependency>
9191
<dependency>
9292
<groupId>io.dropwizard.metrics</groupId>
9393
<artifactId>metrics-core</artifactId>
9494
</dependency>
9595
<dependency>
9696
<groupId>io.dropwizard.metrics</groupId>
9797
<artifactId>metrics-json</artifactId>
98-
</dependency>
98+
</dependency>
9999
<dependency>
100100
<groupId>io.dropwizard.metrics</groupId>
101101
<artifactId>metrics-jvm</artifactId>
102-
</dependency>
102+
</dependency>
103103
<dependency>
104104
<groupId>io.dropwizard.metrics</groupId>
105105
<artifactId>metrics-servlet</artifactId>
106-
</dependency>
106+
</dependency>
107107
<dependency>
108108
<groupId>io.dropwizard.metrics</groupId>
109109
<artifactId>metrics-servlets</artifactId>
@@ -201,10 +201,6 @@
201201
<groupId>org.hibernate</groupId>
202202
<artifactId>hibernate-validator</artifactId>
203203
</dependency>
204-
<dependency>
205-
<groupId>org.hibernate</groupId>
206-
<artifactId>hibernate-java8</artifactId>
207-
</dependency>
208204
<dependency>
209205
<groupId>org.liquibase</groupId>
210206
<artifactId>liquibase-core</artifactId>
@@ -301,8 +297,8 @@
301297
<defaultGoal>spring-boot:run</defaultGoal>
302298
<pluginManagement>
303299
<plugins>
304-
<!-- This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven
305-
build itself. Remove when the m2e plugin can correctly bind to Maven lifecycle -->
300+
<!-- This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. Remove when the m2e plugin can correctly
301+
bind to Maven lifecycle -->
306302
<plugin>
307303
<groupId>org.eclipse.m2e</groupId>
308304
<artifactId>lifecycle-mapping</artifactId>
@@ -344,11 +340,27 @@
344340
</plugins>
345341
</pluginManagement>
346342
<plugins>
347-
<!-- <plugin> <groupId>com.github.ekryd.sortpom</groupId> <artifactId>sortpom-maven-plugin</artifactId> <version>${sortpom-maven-plugin.version}</version>
348-
<executions> <execution> <phase>verify</phase> <goals> <goal>sort</goal> </goals> </execution> </executions> <configuration>
349-
<sortProperties>true</sortProperties> <nrOfIndentSpace>4</nrOfIndentSpace> <sortDependencies>groupId,artifactId</sortDependencies>
350-
<sortPlugins>groupId,artifactId</sortPlugins> <keepBlankLines>true</keepBlankLines> <expandEmptyElements>false</expandEmptyElements>
351-
</configuration> </plugin> -->
343+
<!-- <plugin>
344+
<groupId>com.github.ekryd.sortpom</groupId>
345+
<artifactId>sortpom-maven-plugin</artifactId>
346+
<version>${sortpom-maven-plugin.version}</version>
347+
<executions>
348+
<execution>
349+
<phase>verify</phase>
350+
<goals>
351+
<goal>sort</goal>
352+
</goals>
353+
</execution>
354+
</executions>
355+
<configuration>
356+
<sortProperties>true</sortProperties>
357+
<nrOfIndentSpace>4</nrOfIndentSpace>
358+
<sortDependencies>groupId,artifactId</sortDependencies>
359+
<sortPlugins>groupId,artifactId</sortPlugins>
360+
<keepBlankLines>true</keepBlankLines>
361+
<expandEmptyElements>false</expandEmptyElements>
362+
</configuration>
363+
</plugin> -->
352364
<plugin>
353365
<groupId>com.spotify</groupId>
354366
<artifactId>docker-maven-plugin</artifactId>
@@ -375,8 +387,7 @@
375387
<resultsFolder>target/gatling/results</resultsFolder>
376388
<bodiesFolder>src/test/gatling/bodies</bodiesFolder>
377389
<simulationsFolder>src/test/gatling/simulations</simulationsFolder>
378-
<!-- This will run multiple simulations one by one. Useful when doing gatling tests in CI You must remove
379-
the simulationClass property in order to run multiple simulations -->
390+
<!-- This will run multiple simulations one by one. Useful when doing gatling tests in CI You must remove the simulationClass property in order to run multiple simulations -->
380391
<runMultipleSimulations>true</runMultipleSimulations>
381392
<!-- This will force Gatling to ask which simulation to run This is useful when you have multiple simulations -->
382393
<!-- <simulationClass>*</simulationClass> -->
@@ -740,9 +751,8 @@
740751
</dependencies>
741752
</profile>
742753
<profile>
743-
<!-- Profile for doing "continuous compilation" with the Scala Maven plugin. It allows automatic compilation
744-
of Java classes as soon as they are saved. To use it, run in 3 terminals: - './mvnw -Pcc scala:cc' for continous compilation
745-
of your classes - './mvnw -Pcc' for hot reload of Spring boot - 'gulp' for hot reload of the HTML/JavaScript assets Everything
754+
<!-- Profile for doing "continuous compilation" with the Scala Maven plugin. It allows automatic compilation of Java classes as soon as they are saved. To use it, run in
755+
3 terminals: - './mvnw -Pcc scala:cc' for continous compilation of your classes - './mvnw -Pcc' for hot reload of Spring boot - 'gulp' for hot reload of the HTML/JavaScript assets Everything
746756
should hot reload automatically! -->
747757
<id>cc</id>
748758
<build>
@@ -858,8 +868,7 @@
858868
</dependencies>
859869
</profile>
860870
<profile>
861-
<!-- Profile for applying IDE-specific configuration. At the moment it only configures MapStruct, which you need
862-
when working with DTOs. -->
871+
<!-- Profile for applying IDE-specific configuration. At the moment it only configures MapStruct, which you need when working with DTOs. -->
863872
<id>IDE</id>
864873
<dependencies>
865874
<dependency>
@@ -921,16 +930,15 @@
921930

922931
<sonar.issue.ignore.multicriteria>S3437,UndocumentedApi,BoldAndItalicTagsCheck</sonar.issue.ignore.multicriteria>
923932

924-
<!-- Rule https://sonarqube.com/coding_rules#rule_key=Web%3ABoldAndItalicTagsCheck is ignored. Even if we agree that
925-
using the "i" tag is an awful practice, this is what is recommended by http://fontawesome.io/examples/ -->
933+
<!-- Rule https://sonarqube.com/coding_rules#rule_key=Web%3ABoldAndItalicTagsCheck is ignored. Even if we agree that using the "i" tag is an awful practice, this is what is
934+
recommended by http://fontawesome.io/examples/ -->
926935
<sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.resourceKey>src/main/webapp/app/**/*.*</sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.resourceKey>
927936
<sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.ruleKey>Web:BoldAndItalicTagsCheck</sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.ruleKey>
928-
<!-- Rule https://sonarqube.com/coding_rules#rule_key=squid%3AS3437 is ignored, as a JPA-managed field cannot be
929-
transient -->
937+
<!-- Rule https://sonarqube.com/coding_rules#rule_key=squid%3AS3437 is ignored, as a JPA-managed field cannot be transient -->
930938
<sonar.issue.ignore.multicriteria.S3437.resourceKey>src/main/java/**/*</sonar.issue.ignore.multicriteria.S3437.resourceKey>
931939
<sonar.issue.ignore.multicriteria.S3437.ruleKey>squid:S3437</sonar.issue.ignore.multicriteria.S3437.ruleKey>
932-
<!-- Rule http://sonarqube.com/coding_rules#rule_key=squid%3AUndocumentedApi is ignored, as we want to follow "clean
933-
code" guidelines and classes, methods and arguments names should be self-explanatory -->
940+
<!-- Rule http://sonarqube.com/coding_rules#rule_key=squid%3AUndocumentedApi is ignored, as we want to follow "clean code" guidelines and classes, methods and arguments names
941+
should be self-explanatory -->
934942
<sonar.issue.ignore.multicriteria.UndocumentedApi.resourceKey>src/main/java/**/*</sonar.issue.ignore.multicriteria.UndocumentedApi.resourceKey>
935943
<sonar.issue.ignore.multicriteria.UndocumentedApi.ruleKey>squid:UndocumentedApi</sonar.issue.ignore.multicriteria.UndocumentedApi.ruleKey>
936944

‎jhipster/pom.xml‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,17 @@
1515
<relativePath>../parent-boot-1</relativePath>
1616
</parent>
1717

18+
<dependencies>
19+
<dependency>
20+
<groupId>org.hibernate</groupId>
21+
<artifactId>hibernate-java8</artifactId>
22+
</dependency>
23+
</dependencies>
24+
1825
<modules>
1926
<module>jhipster-monolithic</module>
2027
<module>jhipster-microservice</module>
21-
<module>jhipster-uaa</module>
22-
</modules>
23-
28+
<module>jhipster-uaa</module>
29+
</modules>
30+
2431
</project>

0 commit comments

Comments
 (0)