Skip to content

Commit 27729ac

Browse files
committed
Merge remote-tracking branch 'upstream/main' into spring-boot-v3
2 parents 0da6170 + ce95490 commit 27729ac

File tree

234 files changed

+413
-389
lines changed

Some content is hidden

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

234 files changed

+413
-389
lines changed

.blueprint/cli/commands.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This file is part of the JHipster project, see https://www.jhipster.tech/
55
* for more information.
66
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* Licensed under the Apache License, Version 2.0 (the "License")
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
1010
*

.blueprint/generate-sample/command.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This file is part of the JHipster project, see https://www.jhipster.tech/
55
* for more information.
66
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* Licensed under the Apache License, Version 2.0 (the "License")
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
1010
*

.blueprint/synchronize/command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This file is part of the JHipster project, see https://www.jhipster.tech/
55
* for more information.
66
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* Licensed under the Apache License, Version 2.0 (the "License")
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
1010
*

.blueprint/synchronize/generator.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This file is part of the JHipster project, see https://www.jhipster.tech/
55
* for more information.
66
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* Licensed under the Apache License, Version 2.0 (the "License")
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
1010
*
@@ -50,13 +50,17 @@ export default class SynchronizeGenerator extends BaseGenerator {
5050
.replaceAll(';\n', '\n')
5151
.replaceAll('\nimport static ', '\nimport ')
5252
.replaceAll('public class ', 'class ')
53+
.replaceAll('public abstract class ', 'abstract class ')
54+
.replaceAll('new ', '')
55+
.replaceAll('::class', '::class.java')
5356
.replaceAll('.class', '::class')
5457
.replaceAll(/ (?:extends|implements) (\w+)/g, ' : $1')
5558
.replaceAll(/ (?:extends|implements) /g, ' : ')
5659
.replaceAll(/@Override\n(\s*)/g, 'override ')
5760
.replaceAll(/\n( {4})(private |)?(?:final )?(\w+) (\w+)(\n| = )/g, '\n$1$2lateinit var $4: $3$5')
5861
.replaceAll(/private static final (\w+) /g, 'private val ')
5962
.replaceAll(/(?:public |protected )?(\w+) (\w+)\((.*)\) {/g, 'fun $2($3): $1 {')
63+
.replaceAll(' {}\n', '\n')
6064
.replaceAll(': void', ''),
6165
);
6266
}),

.blueprint/synchronize/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This file is part of the JHipster project, see https://www.jhipster.tech/
55
* for more information.
66
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* Licensed under the Apache License, Version 2.0 (the "License")
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
1010
*

.github/workflows/copyright-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
grep -rlZE "Copyright ([0-9]+)-$CURRENT_YEAR" . | xargs -0 sed -i -E "s/Copyright ([0-9]+)-$CURRENT_YEAR/Copyright \1-$NEW_YEAR/g"
3030
# Create PR
3131
- name: Create Pull Request
32-
uses: peter-evans/create-pull-request@v6
32+
uses: peter-evans/create-pull-request@v7
3333
with:
3434
token: ${{ secrets.GITHUB_TOKEN }}
3535
commit-message: 'Update copyright headers'

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
# Drafts your next Release notes as Pull Requests are merged into "master"
14-
- uses: release-drafter/release-drafter@v5
14+
- uses: release-drafter/release-drafter@v6
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191

192192
Copyright [yyyy] [name of copyright owner]
193193

194-
Licensed under the Apache License, Version 2.0 (the "License");
194+
Licensed under the Apache License, Version 2.0 (the "License")
195195
you may not use this file except in compliance with the License.
196196
You may obtain a copy of the License at
197197

cli/logo.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This file is part of the JHipster project, see https://www.jhipster.tech/
55
* for more information.
66
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* Licensed under the Apache License, Version 2.0 (the "License")
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
1010
*

generators/detekt/templates/gradle/detekt.gradle.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://www.jhipster.tech/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "License");
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/kotlin/__snapshots__/generator.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ exports[`SubGenerator kotlin of kotlin JHipster blueprint > maven > should match
114114
{
115115
"dependencies": [
116116
{
117-
"artifactId": "kotlin-stdlib-jdk8",
117+
"artifactId": "kotlin-stdlib",
118118
"groupId": "org.jetbrains.kotlin",
119119
},
120120
{

generators/kotlin/generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.internal.KaptGenerateStubsTask.class)
166166
source.addJavaDefinition({
167167
versions: [{ name: 'kotlin', version: application.javaDependencies.kotlin }],
168168
dependencies: [
169-
{ groupId: 'org.jetbrains.kotlin', artifactId: 'kotlin-stdlib-jdk8' },
169+
{ groupId: 'org.jetbrains.kotlin', artifactId: 'kotlin-stdlib' },
170170
{ groupId: 'org.jetbrains.kotlin', artifactId: 'kotlin-reflect' },
171171
{ groupId: 'org.jetbrains.kotlin', artifactId: 'kotlin-test-junit', scope: 'test' },
172172
{

generators/kotlin/templates/gradle/kotlin.gradle.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://www.jhipster.tech/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "License");
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,
@@ -19,7 +19,7 @@
1919
import org.gradle.internal.os.OperatingSystem
2020

2121
dependencies {
22-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
22+
implementation "org.jetbrains.kotlin:kotlin-stdlib"
2323
implementation "org.jetbrains.kotlin:kotlin-reflect"
2424

2525
<%_ if (reactive) { _%>

generators/kotlin/templates/src/main/kotlin/_package_/GeneratedByJHipster.kt.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This file is part of the JHipster project, see https://jhipster.github.io/
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[libraries]
22
ktlint-cli = { module = 'com.pinterest.ktlint:ktlint-cli', version = '1.5.0' }
33

4-
ktlint-maven = { module = 'com.github.gantsign.maven:ktlint-maven-plugin', version = '3.4.0' }
4+
ktlint-maven = { module = 'com.github.gantsign.maven:ktlint-maven-plugin', version = '3.5.0' }
55

66
[plugins]
77
ktlint-gradle = { id = 'org.jlleitschuh.gradle.ktlint', version = '12.1.2' }

generators/ktlint/templates/gradle/ktlint.gradle.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://www.jhipster.tech/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "License");
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/migration/generator.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ export default class extends BaseApplicationGenerator {
6060
file.contents = Buffer.from(file.contents.toString().replaceAll('jakarta.', 'javax.'));
6161
}),
6262
);
63+
64+
this.queueTransformStream(
65+
{
66+
name: 'reverting kt files to javax',
67+
filter: file => file.path.endsWith('.kt'),
68+
refresh: false,
69+
},
70+
passthrough(file => {
71+
file.contents = Buffer.from(file.contents.toString().replaceAll('import jakarta.', 'import javax.'));
72+
}),
73+
);
6374
},
6475
});
6576
}

generators/spring-boot-v2/migration.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This file is part of the JHipster project, see https://www.jhipster.tech/
55
* for more information.
66
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* Licensed under the Apache License, Version 2.0 (the "License")
88
* you may not use this file except in compliance with the License.
99
* You may obtain a copy of the License at
1010
*

generators/spring-boot-v2/preparing-migration.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,19 @@ const javaDependenciesOverrides = {
7676
};
7777

7878
export const migrateApplicationTask = asWritingTask(async function ({ application, applicationDefaults }) {
79-
// Downgrade elasticsearch to 7.17.4
79+
const { cassandra, mongodb, postgresql, couchbase, mariadb, mysql, neo4j, mssql, kafka } = jhipster7DockerContainers;
80+
// Downgrade db and elasticsearch
8081
Object.assign(application.dockerContainers, {
8182
elasticsearchTag: ELASTICSEARCH_VERSION,
8283
elasticsearch: `${DOCKER_ELASTICSEARCH_CONTAINER}:${ELASTICSEARCH_VERSION}`,
84+
cassandra,
85+
mongodb,
86+
postgresql,
87+
couchbase,
88+
mariadb,
89+
mysql,
90+
neo4j,
91+
mssql,
8392
});
8493

8594
Object.assign(application.javaDependencies, javaDependenciesOverrides);
@@ -88,7 +97,7 @@ export const migrateApplicationTask = asWritingTask(async function ({ applicatio
8897
});
8998

9099
const dockerContainersVersions = Object.fromEntries(
91-
Object.entries({ ...application.dockerContainers, ...jhipster7DockerContainers }).map(([containerName, container]) => [
100+
Object.entries({ ...application.dockerContainers, kafka }).map(([containerName, container]) => [
92101
`DOCKER_${this._.snakeCase(containerName).toUpperCase().replace('_4_', '4')}`,
93102
container,
94103
]),

generators/spring-boot-v2/templates/src/main/kotlin/_package_/client/AuthorizedUserFeignClient.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://jhipster.github.io/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/spring-boot-v2/templates/src/main/kotlin/_package_/client/OAuth2UserClientFeignConfiguration.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://jhipster.github.io/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/spring-boot-v2/templates/src/main/kotlin/_package_/client/OAuth2_UserFeignClientInterceptor.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://jhipster.github.io/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/spring-boot-v2/templates/src/main/kotlin/_package_/config/LocaleConfiguration.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://www.jhipster.tech/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/spring-boot-v2/templates/src/main/kotlin/_package_/domain/Authority.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://www.jhipster.tech/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/spring-boot-v2/templates/src/main/kotlin/_package_/repository/AuthorityRepository.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://www.jhipster.tech/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/spring-boot-v2/templates/src/main/kotlin/_package_/security/IatTokenEnhancer.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://jhipster.github.io/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/spring-boot-v2/templates/src/main/kotlin/_package_/security/jwt/JWTConfigurer.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://www.jhipster.tech/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/spring-boot-v2/templates/src/main/kotlin/_package_/security/jwt/JWTFilter.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://www.jhipster.tech/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/spring-boot-v2/templates/src/main/kotlin/_package_/security/jwt/TokenProvider.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://www.jhipster.tech/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

generators/spring-boot-v2/templates/src/main/kotlin/_package_/security/oauth2/CachedUserInfoTokenServices.kt.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
This file is part of the JHipster project, see https://jhipster.github.io/
55
for more information.
66
7-
Licensed under the Apache License, Version 2.0 (the "
7+
Licensed under the Apache License, Version 2.0 (the "License")
88
you may not use this file except in compliance with the License.
99
You may obtain a copy of the License at
1010
11-
http://www.apache.org/licenses/LICENSE-2.0
11+
https://www.apache.org/licenses/LICENSE-2.0
1212
1313
Unless required by applicable law or agreed to in writing, software
1414
distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)