Skip to content

Commit 6e2b35d

Browse files
committed
Upgrade to v7.9.2
with `jhipster --with-entities` (WIP)
1 parent b1ecd37 commit 6e2b35d

File tree

395 files changed

+24168
-21057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

395 files changed

+24168
-21057
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"parserOptions": {
1818
"ecmaVersion": 2018,
1919
"sourceType": "module",
20-
"project": "./tsconfig.json"
20+
"project": ["./tsconfig.app.json", "./tsconfig.spec.json"]
2121
},
2222
"rules": {
2323
"@angular-eslint/component-selector": [

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
script-shell=bash

.prettierignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ package-lock.json
66
.mvn
77
gradle
88
.gradle
9-
### MODIFICATION-START ###
10-
contrib
11-
### MODIFICATION-END ###

.yo-rc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
],
4242
"entitySuffix": "",
4343
"jhiPrefix": "jhi",
44-
"jhipsterVersion": "7.8.1",
44+
"jhipsterVersion": "7.9.2",
4545
"languages": ["en", "de"],
4646
"lastLiquibaseTimestamp": 1649348442000,
4747
"messageBroker": false,

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ all: help
2020
.PHONY: prerequisites
2121
prerequisites: ## Install prerequisite npm tools.
2222
@echo "Installing prerequisites with JHipster ..."
23-
npm install -g generator-jhipster@7.8.1
23+
npm install -g generator-jhipster@7.9.2
2424
npm install -g yo
2525
npm install -g rimraf
2626

@@ -80,7 +80,7 @@ start-keycloak: ## Start the Keycloak container for authentication.
8080
$(TOOLS_DIR)/wait-for-container.sh \
8181
'Keycloak' \
8282
$(COMPOSE_FILES)/keycloak.yml \
83-
'Admin console listening on'
83+
'Keycloak 18.0.0 on JVM'
8484

8585
.PHONY: stop-keycloak
8686
stop-keycloak: ## Stop the Keycloak container.

build.gradle

Lines changed: 29 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ test {
9797
testLogging {
9898
events 'FAILED', 'SKIPPED'
9999
}
100-
jvmArgs += '-Djava.security.egd=file:/dev/./urandom -Xmx256m'
100+
jvmArgs += '-Djava.security.egd=file:/dev/./urandom -Xmx512m'
101101
// uncomment if the tests reports are not generated
102102
// see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
103103
// ignoreFailures true
@@ -109,24 +109,7 @@ modernizer {
109109
includeTestClasses = true
110110
}
111111

112-
task integrationTest(type: Test) {
113-
useJUnitPlatform()
114-
description = "Execute integration tests."
115-
group = "verification"
116-
include "**/*IT*", "**/*IntTest*"
117-
testLogging {
118-
events 'FAILED', 'SKIPPED'
119-
}
120-
jvmArgs += '-Djava.security.egd=file:/dev/./urandom -Xmx256m'
121-
if (project.hasProperty('testcontainers')) {
122-
environment 'spring.profiles.active', 'testcontainers'
123-
}
124112

125-
// uncomment if the tests reports are not generated
126-
// see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
127-
// ignoreFailures true
128-
reports.html.enabled = false
129-
}
130113

131114
check.dependsOn integrationTest
132115
task testReport(type: TestReport) {
@@ -195,7 +178,7 @@ configurations {
195178
resolutionStrategy {
196179
// Inherited version from Spring Boot can't be used because of regressions:
197180
// To be removed as soon as spring-boot use the same version
198-
force 'org.liquibase:liquibase-core:4.6.1'
181+
force 'org.liquibase:liquibase-core:4.12.0'
199182
}
200183
}
201184
}
@@ -218,62 +201,49 @@ dependencies {
218201
implementation group: "tech.jhipster", name: "jhipster-framework"
219202
implementation "javax.annotation:javax.annotation-api"
220203
implementation "org.springframework.boot:spring-boot-starter-cache"
221-
implementation "io.dropwizard.metrics:metrics-core"
222-
implementation "io.micrometer:micrometer-registry-prometheus"
223-
implementation "com.fasterxml.jackson.datatype:jackson-datatype-hppc"
224-
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
225204
implementation "com.fasterxml.jackson.module:jackson-module-jaxb-annotations"
226205
implementation "com.fasterxml.jackson.datatype:jackson-datatype-hibernate5"
227-
implementation "com.fasterxml.jackson.core:jackson-annotations"
228-
implementation "com.fasterxml.jackson.core:jackson-databind"
229-
implementation "javax.cache:cache-api"
230-
implementation "org.hibernate:hibernate-core"
206+
implementation "com.fasterxml.jackson.datatype:jackson-datatype-hppc"
207+
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
208+
testImplementation "org.testcontainers:junit-jupiter"
209+
testImplementation "org.testcontainers:testcontainers"
210+
implementation "org.springdoc:springdoc-openapi-webmvc-core"
231211
implementation "com.zaxxer:HikariCP"
232212
implementation "org.apache.commons:commons-lang3"
233213
implementation "org.openapitools:jackson-databind-nullable:${jacksonDatabindNullableVersion}"
234-
implementation "javax.transaction:javax.transaction-api"
214+
implementation "javax.cache:cache-api"
235215
implementation "org.ehcache:ehcache"
236216
implementation "org.hibernate:hibernate-jcache"
237-
implementation "org.hibernate:hibernate-entitymanager"
217+
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateVersion}"
218+
implementation "org.hibernate:hibernate-core"
238219
implementation "org.hibernate.validator:hibernate-validator"
239220
implementation "org.liquibase:liquibase-core"
240221
liquibaseRuntime "org.liquibase:liquibase-core"
241-
liquibaseRuntime "org.liquibase.ext:liquibase-hibernate5:${liquibaseHibernate5Version}"
242-
liquibaseRuntime sourceSets.main.compileClasspath
222+
implementation "org.mapstruct:mapstruct:${mapstructVersion}"
223+
annotationProcessor "org.mapstruct:mapstruct-processor:${mapstructVersion}"
224+
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
243225
implementation "org.springframework.boot:spring-boot-loader-tools"
244-
implementation "org.springframework.boot:spring-boot-starter-mail"
245-
implementation "org.springframework.boot:spring-boot-starter-logging"
246226
implementation "org.springframework.boot:spring-boot-starter-actuator"
247227
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
248-
testImplementation "org.testcontainers:postgresql"
249-
implementation "org.springframework.boot:spring-boot-starter-security"
250-
implementation ("org.springframework.boot:spring-boot-starter-web") {
251-
exclude module: "spring-boot-starter-tomcat"
252-
}
253-
implementation "org.springframework.boot:spring-boot-starter-undertow"
228+
testImplementation "org.testcontainers:jdbc"
229+
implementation "org.springframework.boot:spring-boot-starter-logging"
230+
implementation "org.springframework.boot:spring-boot-starter-mail"
254231
implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
255-
implementation "org.zalando:problem-spring-web"
256-
implementation "org.springframework.security:spring-security-config"
257-
implementation "org.springframework.security:spring-security-data"
258-
implementation "org.springframework.security:spring-security-web"
259-
implementation "org.springframework.boot:spring-boot-starter-oauth2-client"
260-
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server"
261-
implementation ("org.springdoc:springdoc-openapi-webmvc-core")
262-
implementation "org.postgresql:postgresql"
263-
liquibaseRuntime "org.postgresql:postgresql"
264-
implementation "org.mapstruct:mapstruct:${mapstructVersion}"
265-
annotationProcessor "org.mapstruct:mapstruct-processor:${mapstructVersion}"
266-
annotationProcessor "org.hibernate:hibernate-jpamodelgen:${hibernateVersion}"
267-
annotationProcessor "org.glassfish.jaxb:jaxb-runtime:${jaxbRuntimeVersion}"
268-
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
232+
implementation "org.springframework.boot:spring-boot-starter-web"
269233
testImplementation "org.springframework.boot:spring-boot-starter-test"
270-
testImplementation "org.springframework.security:spring-security-test"
271234
testImplementation "org.springframework.boot:spring-boot-test"
235+
testImplementation "org.springframework.security:spring-security-test"
272236
testImplementation "com.tngtech.archunit:archunit-junit5-api:${archunitJunit5Version}"
273237
testRuntimeOnly "com.tngtech.archunit:archunit-junit5-engine:${archunitJunit5Version}"
274-
testImplementation "com.h2database:h2"
275-
liquibaseRuntime "com.h2database:h2"
276-
developmentOnly "org.springframework.boot:spring-boot-devtools:${springBootVersion}"
238+
implementation "org.zalando:problem-spring-web"
239+
implementation "org.springframework.boot:spring-boot-starter-undertow"
240+
implementation "org.springframework.boot:spring-boot-starter-oauth2-client"
241+
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server"
242+
implementation "org.springframework.security:spring-security-data"
243+
implementation "io.micrometer:micrometer-registry-prometheus"
244+
implementation "io.dropwizard.metrics:metrics-core"
245+
liquibaseRuntime sourceSets.main.compileClasspath
246+
liquibaseRuntime "org.liquibase.ext:liquibase-hibernate5:${liquibaseHibernate5Version}"
277247
//jhipster-needle-gradle-dependency - JHipster will add additional dependencies here
278248
}
279249

@@ -307,8 +277,8 @@ if (project.hasProperty("nodeInstall")) {
307277
Architecture arch = org.gradle.nativeplatform.platform.internal.DefaultNativePlatform.getCurrentArchitecture();
308278
Boolean downloadNode = !os.isMacOsX() || arch.isAmd64()
309279
node {
310-
version = "16.14.0"
311-
npmVersion = "8.6.0"
280+
version = "16.16.0"
281+
npmVersion = "8.15.1"
312282
download = downloadNode
313283
}
314284

gradle.properties

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,34 @@ rootProject.name=team-dojo
22
profile=dev
33

44
# Dependency versions
5-
jhipsterDependenciesVersion=7.8.1
5+
jhipsterDependenciesVersion=7.9.2
66
# The spring-boot version should match the one managed by
7-
# https://mvnrepository.com/artifact/tech.jhipster/jhipster-dependencies/7.8.1
8-
springBootVersion=2.6.6
7+
# https://mvnrepository.com/artifact/tech.jhipster/jhipster-dependencies/7.9.2
8+
springBootVersion=2.7.2
99
# The hibernate version should match the one managed by
10-
# https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/2.6.6 -->
11-
hibernateVersion=5.6.7.Final
12-
mapstructVersion=1.4.2.Final
10+
# https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/2.7.2 -->
11+
hibernateVersion=5.6.10.Final
12+
mapstructVersion=1.5.2.Final
1313
archunitJunit5Version=0.22.0
14-
jacksonDatabindNullableVersion=0.2.2
15-
liquibaseHibernate5Version=4.6.1
14+
jacksonDatabindNullableVersion=0.2.3
15+
liquibaseHibernate5Version=4.12.0
1616
liquibaseTaskPrefix=liquibase
1717

1818

1919

20-
jaxbRuntimeVersion=2.3.3
20+
jaxbRuntimeVersion=4.0.0
2121

2222
# gradle plugin version
2323
jibPluginVersion=3.2.1
24-
gitPropertiesPluginVersion=2.4.0
25-
gradleNodePluginVersion=3.2.1
24+
gitPropertiesPluginVersion=2.4.1
25+
gradleNodePluginVersion=3.4.0
2626
liquibasePluginVersion=2.1.1
27-
sonarqubePluginVersion=3.3
28-
openapiPluginVersion=5.4.0
27+
sonarqubePluginVersion=3.4.0.2513
28+
openapiPluginVersion=6.0.1
2929
noHttpCheckstyleVersion=0.0.10
30-
checkstyleVersion=10.1
30+
checkstyleVersion=10.3.1
3131
modernizerPluginVersion=1.6.2
32+
3233
# jhipster-needle-gradle-property - JHipster will add additional properties here
3334

3435
## below are some of the gradle performance improvement settings that can be used as required, these are not enabled by default

gradle/docker.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
jib {
22
from {
3-
image = "eclipse-temurin:17-jre-focal"
3+
image = "eclipse-temurin:11-jre-focal"
4+
platforms {
5+
platform {
6+
architecture = "${findProperty('jibArchitecture') ?: 'amd64'}"
7+
os = "linux"
8+
}
9+
}
410
}
511
to {
612
image = "teamdojo:latest"

gradle/profile_dev.gradle

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
sourceSets {
2+
test {
3+
java {
4+
exclude 'com/iteratec/teamdojo/config/PostgreSqlTestContainer.java'
5+
}
6+
}
7+
}
18
dependencies {
29
developmentOnly "org.springframework.boot:spring-boot-devtools:${springBootVersion}"
310
implementation "com.h2database:h2"
11+
testImplementation "org.testcontainers:postgresql"
412
}
513

614
def profiles = "dev"
@@ -20,7 +28,7 @@ springBoot {
2028
}
2129

2230
bootRun {
23-
args = []
31+
args = ["--spring.profiles.active=${profiles}"]
2432
}
2533

2634
task webapp(type: NpmTask) {
@@ -65,5 +73,23 @@ processResources {
6573
}
6674
}
6775

76+
task integrationTest(type: Test) {
77+
maxHeapSize = "1G"
78+
useJUnitPlatform()
79+
description = "Execute integration tests."
80+
group = "verification"
81+
include "**/*IT*", "**/*IntTest*"
82+
testLogging {
83+
events 'FAILED', 'SKIPPED'
84+
}
85+
systemProperty('spring.profiles.active', 'testdev')
86+
systemProperty('java.security.egd', 'file:/dev/./urandom')
87+
// uncomment if the tests reports are not generated
88+
// see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
89+
// ignoreFailures true
90+
reports.html.enabled = false
91+
}
92+
integrationTest.dependsOn test
93+
6894
processResources.dependsOn webapp
6995
bootJar.dependsOn processResources

gradle/profile_prod.gradle

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
dependencies {
2-
testImplementation "com.h2database:h2"
2+
implementation "org.postgresql:postgresql"
3+
liquibaseRuntime "org.postgresql:postgresql"
4+
testImplementation "org.testcontainers:postgresql"
35
}
46

57
def profiles = "prod"
@@ -20,7 +22,7 @@ springBoot {
2022
}
2123

2224
bootRun {
23-
args = []
25+
args = ["--spring.profiles.active=${profiles}"]
2426
}
2527

2628
task webapp(type: NpmTask, dependsOn: "npm_install") {
@@ -41,5 +43,24 @@ processResources {
4143
}
4244
}
4345

46+
task integrationTest(type: Test) {
47+
maxHeapSize = "1G"
48+
useJUnitPlatform()
49+
description = "Execute integration tests."
50+
group = "verification"
51+
include "**/*IT*", "**/*IntTest*"
52+
testLogging {
53+
events 'FAILED', 'SKIPPED'
54+
}
55+
systemProperty('spring.profiles.active', 'testprod')
56+
systemProperty('java.security.egd', 'file:/dev/./urandom')
57+
// uncomment if the tests reports are not generated
58+
// see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
59+
// ignoreFailures true
60+
reports.html.enabled = false
61+
}
62+
integrationTest.dependsOn test
63+
64+
4465
processResources.dependsOn webapp
4566
bootJar.dependsOn processResources

gradle/sonar.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jacoco {
2-
toolVersion = "0.8.7"
2+
toolVersion = "0.8.8"
33
}
44

55
jacocoTestReport {

jest.conf.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ module.exports = {
2020
reporters: ['default', ['jest-junit', { outputDirectory: '<rootDir>/build/test-results/', outputName: 'TESTS-results-jest.xml' }]],
2121
testResultsProcessor: 'jest-sonar-reporter',
2222
testMatch: ['<rootDir>/src/main/webapp/app/**/@(*.)@(spec.ts)'],
23-
testURL: 'http://localhost/',
23+
testEnvironmentOptions: {
24+
url: 'http://localhost/',
25+
},
2426
};

0 commit comments

Comments
 (0)