Skip to content

Commit c704b81

Browse files
authored
improve templates for Spring Boot v3 (#464)
1 parent dc20300 commit c704b81

File tree

238 files changed

+536
-508
lines changed

Some content is hidden

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

238 files changed

+536
-508
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
*

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/templates/gradle/kotlin.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/templates/src/main/kotlin/_package_/GeneratedByJHipster.kt.ejs

Lines changed: 2 additions & 2 deletions
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,
@@ -23,7 +23,7 @@ import java.lang.annotation.Retention
2323
import java.lang.annotation.RetentionPolicy
2424
import java.lang.annotation.Target
2525

26-
import javax.annotation.Generated
26+
import jakarta.annotation.Generated
2727

2828
@Generated(value= ["JHipster"], comments="Generated by JHipster <%= jhipsterVersion %>")
2929
@Retention(RetentionPolicy.SOURCE)

0 commit comments

Comments
 (0)