generator-jhipster 6.10.4 → 6.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,7 +12,7 @@ Please read our [guidelines](/CONTRIBUTING.md#submitting-an-issue) before submit
12
12
 
13
13
  ## Contributing
14
14
 
15
- We are honoured by any contributions you may have small or large. Please refer to our [contribution guidelines and instructions document](https://github.com/jhipster/generator-jhipster/blob/master/CONTRIBUTING.md) for any information about contributing to the project.
15
+ We are honoured by any contributions you may have small or large. Please refer to our [contribution guidelines and instructions document](https://github.com/jhipster/generator-jhipster/blob/main/CONTRIBUTING.md) for any information about contributing to the project.
16
16
 
17
17
  ## Sponsors
18
18
 
@@ -37,7 +37,7 @@ Support this project by becoming a sponsor! [Become a sponsor](https://opencolle
37
37
  </td>
38
38
  <td align="center" valign="middle">
39
39
  <a href="https://dev.entando.org/jhipster" target="_blank">
40
- <img width="200em" src="https://www.jhipster.tech/images/open-collective/Entando_E.png">
40
+ <img width="200em" src="https://www.jhipster.tech/images/open-collective/entandoe.png">
41
41
  </a>
42
42
  </td>
43
43
  </tr>
@@ -46,113 +46,16 @@ Support this project by becoming a sponsor! [Become a sponsor](https://opencolle
46
46
 
47
47
  ### Bronze sponsors
48
48
 
49
- <table>
50
- <tbody>
51
- <tr>
52
- <td align="center" valign="middle">
53
- <a href="https://forsyslab.com/" target="_blank">
54
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/forsyslab.png">
55
- </a>
56
- </td>
57
- <td align="center" valign="middle">
58
- <a href="https://www.cuba-platform.com/" target="_blank">
59
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/cubaplatform.png">
60
- </a>
61
- </td>
62
- <td align="center" valign="middle">
63
- <a href="https://www.codefirst.co.uk" target="_blank">
64
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/codefirst.png">
65
- </a>
66
- </td>
67
- <td align="center" valign="middle">
68
- <a href="https://blokt.com/" target="_blank">
69
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/blokt.png">
70
- </a>
71
- </td>
72
- <td align="center" valign="middle">
73
- <a href="https://clay.global/" target="_blank">
74
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/clay.png">
75
- </a>
76
- </td>
77
- </tr>
78
- <tr>
79
- <td align="center" valign="middle">
80
- <a href="https://uxplanet.org/" target="_blank">
81
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/uxplanet.png">
82
- </a>
83
- </td>
84
- <td align="center" valign="middle">
85
- <a href="https://opencollective.com/top-web-design-agencies" target="_blank">
86
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/top-web-design-agencies.png">
87
- </a>
88
- </td>
89
- <td align="center" valign="middle">
90
- <a href="https://fair-laan.se/" target="_blank">
91
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/fair-laan.png">
92
- </a>
93
- </td>
94
- <td align="center" valign="middle">
95
- <a href="https://superkredit.net" target="_blank">
96
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/superkredit.png">
97
- </a>
98
- </td>
99
- <td align="center" valign="middle">
100
- <a href="https://matchbanker.pl/" target="_blank">
101
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/matchbanker.png">
102
- </a>
103
- </td>
104
- </tr>
105
- <tr>
106
- <td align="center" valign="middle">
107
- <a href="https://matchbanker.no/" target="_blank">
108
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/matchbanker.png">
109
- </a>
110
- </td>
111
- <td align="center" valign="middle">
112
- <a href="https://www.banksecrets.eu/" target="_blank">
113
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/banksecrets.png">
114
- </a>
115
- </td>
116
- <td align="center" valign="middle">
117
- <a href="https://writersperhour.com/urgent-essay-writing-service" target="_blank">
118
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/writersperhour.png">
119
- </a>
120
- </td>
121
- <td align="center" valign="middle">
122
- <a href="https://www.minitool.com/" target="_blank">
123
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/minitool.png">
124
- </a>
125
- </td>
126
- <td align="center" valign="middle">
127
- <a href="https://unscramblex.com/" target="_blank">
128
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/unscramblex.png">
129
- </a>
130
- </td>
131
- </tr>
132
- <tr>
133
- <td align="center" valign="middle">
134
- <a href="https://edubirdie.com/" target="_blank">
135
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/edubirdie.png">
136
- </a>
137
- </td>
138
- <td align="center" valign="middle">
139
- <a href="https://www.zadluzenia.com/" target="_blank">
140
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/zadluzenia.png">
141
- </a>
142
- </td>
143
- <td align="center" valign="middle">
144
- <a href="https://opencollective.com/jim-van-dam" target="_blank">
145
- <img width="50em" src="https://www.jhipster.tech/images/open-collective/jim-van-dam.png">
146
- </a>
147
- </td>
148
- </tr>
149
- </tbody>
150
- </table>
49
+ [![BronzeSponsors][bronze-sponsors-image]][bronze-sponsors-url]
50
+
51
+ ### Backers
151
52
 
152
53
  **Thank you to all our backers!**
153
54
 
154
55
  [![Backers][backers-image]][backers-url]
155
56
 
57
+ <object data="https://opencollective.com/generator-jhipster/tiers/backer.svg?avatarHeight=40&width=890&button=false" type="image/svg+xml"></object>
58
+
156
59
  ## Azure Builds
157
60
 
158
61
  Additional builds at [hipster-labs/jhipster-daily-builds](https://github.com/hipster-labs/jhipster-daily-builds)
@@ -169,14 +72,11 @@ Additional builds at [hipster-labs/jhipster-daily-builds](https://github.com/hip
169
72
  | [![React Gradle NoSQL][github-react-gradle-nosql]][github-actions] |
170
73
  | [![Elasticsearch][github-elasticsearch]][github-actions] |
171
74
  | [![Monolith OAuth2][github-monolith-oauth2]][github-actions] |
172
- | [![Yarn][github-yarn]][github-actions] |
173
75
  | [![No Database][github-no-database]][github-actions] |
174
76
  | [![Microservices JWT][github-ms-jwt]][github-actions] |
175
77
  | [![Microservices OAuth2][github-ms-oauth2]][github-actions] |
176
78
  | [![Microservices UAA][github-ms-uaa]][github-actions] |
177
79
  | [![Docker Image][github-docker-image]][github-actions] |
178
- | [![Neo4j][github-neo4j]][github-actions] |
179
- | [![Couchbase][github-couchbase]][github-actions] |
180
80
  | [![Official Windows][github-official-windows]][github-actions] |
181
81
 
182
82
  ## Analysis of the sample JHipster project
@@ -195,32 +95,31 @@ Additional builds at [hipster-labs/jhipster-daily-builds](https://github.com/hip
195
95
  [github-react-gradle-nosql]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/React%20Gradle%20NoSQL/badge.svg
196
96
  [github-elasticsearch]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/Elasticsearch/badge.svg
197
97
  [github-monolith-oauth2]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/Monolith%20OAuth2/badge.svg
198
- [github-yarn]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/Yarn/badge.svg
199
98
  [github-no-database]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/No%20Database/badge.svg
200
99
  [github-ms-jwt]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/Microservices%20JWT/badge.svg
201
100
  [github-ms-oauth2]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/Microservices%20OAuth2/badge.svg
202
101
  [github-ms-uaa]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/Microservices%20UAA/badge.svg
203
102
  [github-docker-image]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/Docker%20Image/badge.svg
204
- [github-neo4j]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/Neo4j/badge.svg
205
- [github-couchbase]: https://github.com/hipster-labs/jhipster-daily-builds/workflows/Couchbase/badge.svg
206
103
  [sonar-url]: https://sonarcloud.io/dashboard?id=jhipster-sample-application
207
104
  [sonar-quality-gate]: https://sonarcloud.io/api/project_badges/measure?project=jhipster-sample-application&metric=alert_status
208
105
  [sonar-coverage]: https://sonarcloud.io/api/project_badges/measure?project=jhipster-sample-application&metric=coverage
209
106
  [sonar-bugs]: https://sonarcloud.io/api/project_badges/measure?project=jhipster-sample-application&metric=bugs
210
107
  [sonar-vulnerabilities]: https://sonarcloud.io/api/project_badges/measure?project=jhipster-sample-application&metric=vulnerabilities
211
- [jhipster-image]: https://raw.githubusercontent.com/jhipster/jhipster-artwork/master/logos/JHipster%20RGB-small100x25px.png
108
+ [jhipster-image]: https://raw.githubusercontent.com/jhipster/jhipster-artwork/main/logos/JHipster%20RGB-small100x25px.png
212
109
  [jhipster-url]: https://www.jhipster.tech/
213
110
  [npm-image]: https://badge.fury.io/js/generator-jhipster.svg
214
111
  [npm-url]: https://npmjs.org/package/generator-jhipster
215
- [azure-devops-image]: https://dev.azure.com/jhipster/generator-jhipster/_apis/build/status/jhipster.generator-jhipster?branchName=master
112
+ [azure-devops-image]: https://dev.azure.com/jhipster/generator-jhipster/_apis/build/status/jhipster.generator-jhipster?branchName=main
216
113
  [azure-devops-url-main]: https://dev.azure.com/jhipster/generator-jhipster/_build
217
114
  [github-actions-generator-image]: https://github.com/jhipster/generator-jhipster/workflows/Generator/badge.svg
218
115
  [github-actions-angular-image]: https://github.com/jhipster/generator-jhipster/workflows/Angular/badge.svg
219
116
  [github-actions-react-image]: https://github.com/jhipster/generator-jhipster/workflows/React/badge.svg
220
117
  [github-actions-webflux-image]: https://github.com/jhipster/generator-jhipster/workflows/Webflux/badge.svg
221
118
  [github-actions-url]: https://github.com/jhipster/generator-jhipster/actions
222
- [backers-image]: https://opencollective.com/generator-jhipster/tiers/backer.svg?avatarHeight=40&width=890
119
+ [backers-image]: https://opencollective.com/generator-jhipster/tiers/backer.svg?avatarHeight=70&width=890
223
120
  [backers-url]: https://opencollective.com/generator-jhipster
121
+ [bronze-sponsors-image]: https://opencollective.com/generator-jhipster/tiers/bronze-sponsor.svg?avatarHeight=120&width=890
122
+ [bronze-sponsors-url]: https://opencollective.com/generator-jhipster
224
123
  [issue-template]: https://github.com/jhipster/generator-jhipster/issues/new?template=BUG_REPORT.md
225
124
  [feature-template]: https://github.com/jhipster/generator-jhipster/issues/new?template=FEATURE_REQUEST.md
226
125
  [npmcharts-image]: https://img.shields.io/npm/dm/generator-jhipster.svg?label=Downloads&style=flat
package/cli/jdl.js CHANGED
@@ -83,7 +83,7 @@ module.exports = (args, options = {}, env, forkProcess) => {
83
83
  if (options.skipSampleRepository) {
84
84
  return Promise.reject(new Error(`Could not find ${filename}, make sure the path is correct.`));
85
85
  }
86
- url = new URL(filename, 'https://raw.githubusercontent.com/jhipster/jdl-samples/master/').toString();
86
+ url = new URL(filename, 'https://raw.githubusercontent.com/jhipster/jdl-samples/main/').toString();
87
87
  filename = path.basename(filename);
88
88
  }
89
89
  return downloadFile(url, filename);
@@ -31,7 +31,7 @@ const GRADLE_VERSION = '6.5';
31
31
  const JIB_VERSION = '2.4.0';
32
32
 
33
33
  // Libraries version
34
- const JHIPSTER_DEPENDENCIES_VERSION = '3.9.0';
34
+ const JHIPSTER_DEPENDENCIES_VERSION = '3.9.1';
35
35
  // The spring-boot version should match the one managed by https://mvnrepository.com/artifact/io.github.jhipster/jhipster-dependencies/JHIPSTER_DEPENDENCIES_VERSION
36
36
  const SPRING_BOOT_VERSION = '2.2.7.RELEASE';
37
37
  const LIQUIBASE_VERSION = '3.9.0';
@@ -26,7 +26,9 @@ import org.springframework.beans.factory.annotation.Value;
26
26
  <%_ if (databaseType !== 'no' && databaseType !== 'cassandra') { _%>
27
27
  import org.springframework.dao.ConcurrencyFailureException;
28
28
  <%_ } _%>
29
+ <%_ if (databaseType !== 'no') { _%>
29
30
  import org.springframework.dao.DataAccessException;
31
+ <%_ } _%>
30
32
  import org.springframework.http.ResponseEntity;
31
33
  import org.springframework.http.converter.HttpMessageConversionException;
32
34
  <%_ if (reactive && databaseType === 'sql') { _%>
@@ -206,7 +208,7 @@ _%>
206
208
 
207
209
  @Override
208
210
  public ProblemBuilder prepare(final Throwable throwable, final StatusType status, final URI type) {
209
-
211
+
210
212
  Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());
211
213
 
212
214
  if (activeProfiles.contains(JHipsterConstants.SPRING_PROFILE_PRODUCTION)) {
@@ -221,7 +223,7 @@ _%>
221
223
  .map(this::toProblem)
222
224
  .orElse(null));
223
225
  }
224
-
226
+ <%_ if (databaseType !== 'no') { _%>
225
227
  if (throwable instanceof DataAccessException) {
226
228
  return Problem.builder()
227
229
  .withType(type)
@@ -233,7 +235,7 @@ _%>
233
235
  .map(this::toProblem)
234
236
  .orElse(null));
235
237
  }
236
-
238
+ <%_ } _%>
237
239
  if (containsPackageName(throwable.getMessage())) {
238
240
  return Problem.builder()
239
241
  .withType(type)
@@ -263,4 +265,4 @@ _%>
263
265
  // This list is for sure not complete
264
266
  return StringUtils.containsAny(message, "org.", "java.", "net.", "javax.", "com.", "io.", "de.", "<%= packageName %>");
265
267
  }
266
- }
268
+ }
@@ -35,7 +35,7 @@ import <%= packageName %>.service.UserService;
35
35
 
36
36
  import org.junit.jupiter.api.BeforeEach;
37
37
  import org.junit.jupiter.api.Test;
38
- <%_ if (databaseType === 'neo4j') { _%>
38
+ <%_ if (databaseType === 'neo4j' || cacheProvider === 'redis') { _%>
39
39
  import org.junit.jupiter.api.extension.ExtendWith;
40
40
  <%_ } _%>
41
41
  import org.springframework.beans.factory.annotation.Autowired;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-jhipster",
3
- "version": "6.10.4",
3
+ "version": "6.10.5",
4
4
  "description": "Spring Boot + Angular/React in one handy generator",
5
5
  "files": [
6
6
  "cli",