Skip to content

Commit 3991c9c

Browse files
committed
automatic project update for v9.0.0-beta.3
1 parent 87cea5d commit 3991c9c

229 files changed

Lines changed: 1561 additions & 1135 deletions

File tree

Some content is hidden

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

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
// Update the VARIANT arg to pick a Java version: 17, 19
99
// Append -bullseye or -buster to pin to an OS version.
1010
// Use the -bullseye variants on local arm64/Apple Silicon.
11-
"VARIANT": "17-bullseye",
11+
"VARIANT": "21-bullseye",
1212
// Options
1313
// maven and gradle wrappers are used by default, we don't need them installed globally
1414
// "INSTALL_MAVEN": "true",
1515
// "INSTALL_GRADLE": "false",
16-
"NODE_VERSION": "24.11.1"
16+
"NODE_VERSION": "24.13.0"
1717
}
1818
},
1919

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
distributionType=only-script
2-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
2+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip

.yo-rc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"entitySuffix": "",
2727
"hibernateCache": "ehcache",
2828
"jhiPrefix": "jhi",
29-
"jhipsterVersion": "9.0.0-beta.0",
29+
"jhipsterVersion": "9.0.0-beta.3",
3030
"jwtSecretKey": "bXktc2VjcmV0LWtleS13aGljaC1zaG91bGQtYmUtY2hhbmdlZC1pbi1wcm9kdWN0aW9uLWFuZC1iZS1iYXNlNjQtZW5jb2RlZAo=",
3131
"languages": ["en"],
3232
"messageBroker": false,

README.md

Lines changed: 63 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# jhipsterSampleApplication
22

3-
This application was generated using JHipster 9.0.0-beta.0, you can find documentation and help at [https://www.jhipster.tech/documentation-archive/v9.0.0-beta.0](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.0).
3+
This application was generated using JHipster 9.0.0-beta.3, you can find documentation and help at [https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3).
44

55
## Project Structure
66

@@ -27,18 +27,18 @@ The build system will install automatically the recommended version of Node and
2727
We provide a wrapper to launch npm.
2828
You will only need to run this command when dependencies change in [package.json](package.json).
2929

30-
```
30+
```bash
3131
./npmw install
3232
```
3333

34-
We use npm scripts and [Angular CLI][] with [Webpack][] as our build system.
34+
We use npm scripts and [Angular CLI](https://angular.dev/tools/cli) with Webpack as our build system.
3535

3636
Run the following commands in two separate terminals to create a blissful development experience where your browser
3737
auto-refreshes when files change on your hard drive.
3838

39-
```
40-
./npmw backend:start
41-
./npmw start
39+
```bash
40+
./npmw run backend:start
41+
./npmw run start
4242
```
4343

4444
Npm is also used to manage CSS and JavaScript dependencies used in this application. You can upgrade dependencies by
@@ -59,48 +59,48 @@ ServiceWorkerModule.register('ngsw-worker.js', { enabled: false }),
5959

6060
### Managing dependencies
6161

62-
For example, to add [Leaflet][] library as a runtime dependency of your application, you would run the following command:
62+
For example, to add [Leaflet](https://leafletjs.com/) library as a runtime dependency of your application, you would run the following command:
6363

64-
```
64+
```bash
6565
./npmw install --save --save-exact leaflet
6666
```
6767

68-
To benefit from TypeScript type definitions from [DefinitelyTyped][] repository in development, you would run the following command:
68+
To benefit from TypeScript type definitions from [DefinitelyTyped](https://definitelytyped.org/) repository in development, you would run the following command:
6969

70-
```
70+
```bash
7171
./npmw install --save-dev --save-exact @types/leaflet
7272
```
7373

7474
Then you would import the JS and CSS files specified in library's installation instructions so that [Webpack][] knows about them:
7575
Edit [src/main/webapp/app/app.config.ts](src/main/webapp/app/app.config.ts) file:
7676

77-
```
77+
```typescript
7878
import 'leaflet/dist/leaflet.js';
7979
```
8080

8181
Edit [src/main/webapp/content/scss/vendor.scss](src/main/webapp/content/scss/vendor.scss) file:
8282

83-
```
83+
```typescript
8484
@import 'leaflet/dist/leaflet.css';
8585
```
8686

8787
Note: There are still a few other things remaining to do for Leaflet that we won't detail here.
8888

89-
For further instructions on how to develop with JHipster, have a look at [Using JHipster in development][].
89+
For further instructions on how to develop with JHipster, have a look at [Using JHipster in development](https://www.jhipster.tech/development/).
9090

9191
### Using Angular CLI
9292

93-
You can also use [Angular CLI][] to generate some custom client code.
93+
You can also use [Angular CLI](https://angular.dev/tools/cli) to generate some custom client code.
9494

9595
For example, the following command:
9696

97-
```
97+
```bash
9898
ng generate component my-component
9999
```
100100

101101
will generate few files:
102102

103-
```
103+
```bash
104104
create src/main/webapp/app/my-component/my-component.html
105105
create src/main/webapp/app/my-component/my-component.ts
106106
update src/main/webapp/app/app.config.ts
@@ -112,14 +112,14 @@ update src/main/webapp/app/app.config.ts
112112

113113
To build the final jar and optimize the jhipsterSampleApplication application for production, run:
114114

115-
```
115+
```bash
116116
./mvnw -Pprod clean verify
117117
```
118118

119119
This will concatenate and minify the client CSS and JavaScript files. It will also modify `index.html` so it references these new files.
120120
To ensure everything worked, run:
121121

122-
```
122+
```bash
123123
java -jar target/*.jar
124124
```
125125

@@ -131,15 +131,15 @@ Refer to [Using JHipster in production][] for more details.
131131

132132
To package your application as a war in order to deploy it to an application server, run:
133133

134-
```
134+
```bash
135135
./mvnw -Pprod,war clean verify
136136
```
137137

138138
### JHipster Control Center
139139

140140
JHipster Control Center can help you manage and control your application(s). You can start a local control center server (accessible on http://localhost:7419) with:
141141

142-
```
142+
```bash
143143
docker compose -f src/main/docker/jhipster-control-center.yml up
144144
```
145145

@@ -149,25 +149,25 @@ docker compose -f src/main/docker/jhipster-control-center.yml up
149149

150150
To launch your application's tests, run:
151151

152-
```
152+
```bash
153153
./mvnw verify
154154
```
155155

156156
### Gatling
157157

158-
Performance tests are run by [Gatling][] and written in Scala. They're located in [src/test/java/gatling/simulations](src/test/java/gatling/simulations).
158+
Performance tests are run by [Gatling](https://gatling.io/) and written in Scala. They're located in [src/test/java/gatling/simulations](src/test/java/gatling/simulations).
159159

160160
You can execute all Gatling tests with
161161

162-
```
162+
```bash
163163
./mvnw gatling:test
164164
```
165165

166166
### Client tests
167167

168-
Unit tests are run by [Jest][]. They're located near components and can be run with:
168+
Unit tests are run by Vitest. They're located near components and can be run with:
169169

170-
```
170+
```bash
171171
./npmw test
172172
```
173173

@@ -178,7 +178,7 @@ and can be run by starting Spring Boot in one terminal (`./npmw run app:start`)
178178

179179
Before running Cypress tests, it's possible to specify user credentials by overriding the `CYPRESS_E2E_USERNAME` and `CYPRESS_E2E_PASSWORD` environment variables.
180180

181-
```
181+
```bash
182182
export CYPRESS_E2E_USERNAME="<your-username>"
183183
export CYPRESS_E2E_PASSWORD="<your-password>"
184184
```
@@ -188,16 +188,18 @@ See Cypress documentation for setting OS [environment variables](https://docs.cy
188188
#### Lighthouse audits
189189

190190
You can execute automated [Lighthouse audits](https://developer.chrome.com/docs/lighthouse/overview) with [cypress-audit](https://github.com/mfrachet/cypress-audit) by running `./npmw run e2e:cypress:audits`.
191+
191192
You should only run the audits when your application is packaged with the production profile.
192-
The lighthouse report is created in `target/cypress/lhreport.html`.
193+
194+
The Lighthouse report is created in `target/cypress/lhreport.html`.
193195

194196
## Others
195197

196198
### Code quality using Sonar
197199

198200
Sonar is used to analyse code quality. You can start a local Sonar server (accessible on http://localhost:9001) with:
199201

200-
```
202+
```bash
201203
docker compose -f src/main/docker/sonar.yml up -d
202204
```
203205

@@ -207,19 +209,19 @@ You can run a Sonar analysis with using the [sonar-scanner](https://docs.sonarqu
207209

208210
Then, run a Sonar analysis:
209211

210-
```
212+
```bash
211213
./mvnw -Pprod clean verify sonar:sonar -Dsonar.login=admin -Dsonar.password=admin
212214
```
213215

214216
If you need to re-run the Sonar phase, please be sure to specify at least the `initialize` phase since Sonar properties are loaded from the sonar-project.properties file.
215217

216-
```
218+
```bash
217219
./mvnw initialize sonar:sonar -Dsonar.login=admin -Dsonar.password=admin
218220
```
219221

220222
Additionally, Instead of passing `sonar.password` and `sonar.login` as CLI arguments, these parameters can be configured from [sonar-project.properties](sonar-project.properties) as shown below:
221223

222-
```
224+
```bash
223225
sonar.login=admin
224226
sonar.password=admin
225227
```
@@ -232,17 +234,17 @@ JHipster generates a number of Docker Compose configuration files in the [src/ma
232234

233235
For example, to start required services in Docker containers, run:
234236

235-
```
237+
```bash
236238
docker compose -f src/main/docker/services.yml up -d
237239
```
238240

239241
To stop and remove the containers, run:
240242

241-
```
243+
```bash
242244
docker compose -f src/main/docker/services.yml down
243245
```
244246

245-
[Spring Docker Compose Integration](https://docs.spring.io/spring-boot/reference/features/dev-services.html) is enabled by default. It's possible to disable it in application.yml:
247+
[Spring Docker Compose Integration](https://docs.spring.io/spring-boot/reference/features/dev-services.html) is enabled by default. It's possible to disable it in `application.yml`:
246248

247249
```yaml
248250
spring:
@@ -255,43 +257,45 @@ spring:
255257
You can also fully dockerize your application and all the services that it depends on.
256258
To achieve this, first build a Docker image of your app by running:
257259
258-
```sh
260+
```bash
259261
npm run java:docker
260262
```
261263

262-
Or build an arm64 Docker image when using an arm64 processor os like MacOS with M1 processor family running:
264+
Or build an arm64 Docker image when using an arm64 processor OS, i.e., Apple Silicon chips (M\*), running:
263265

264-
```sh
266+
```bash
265267
npm run java:docker:arm64
266268
```
267269

268270
Then run:
269271

270-
```sh
272+
```bash
271273
docker compose -f src/main/docker/app.yml up -d
272274
```
273275

274-
For more information refer to [Using Docker and Docker-Compose][], this page also contains information on the Docker Compose sub-generator (`jhipster docker-compose`), which is able to generate Docker configurations for one or several JHipster applications.
276+
For more information refer to [Docker and Docker-Compose](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3/docker-compose/), this page also contains information on the Docker Compose sub-generator (`jhipster docker-compose`), which is able to generate Docker configurations for one or several JHipster applications.
275277

276278
## Continuous Integration (optional)
277279

278-
To configure CI for your project, run the ci-cd sub-generator (`jhipster ci-cd`), this will let you generate configuration files for a number of Continuous Integration systems. Consult the [Setting up Continuous Integration][] page for more information.
279-
280-
[JHipster Homepage and latest documentation]: https://www.jhipster.tech/
281-
[JHipster 9.0.0-beta.0 archive]: https://www.jhipster.tech/documentation-archive/v9.0.0-beta.0
282-
[Using JHipster in development]: https://www.jhipster.tech/documentation-archive/v9.0.0-beta.0/development/
283-
[Using Docker and Docker-Compose]: https://www.jhipster.tech/documentation-archive/v9.0.0-beta.0/docker-compose
284-
[Using JHipster in production]: https://www.jhipster.tech/documentation-archive/v9.0.0-beta.0/production/
285-
[Running tests page]: https://www.jhipster.tech/documentation-archive/v9.0.0-beta.0/running-tests/
286-
[Code quality page]: https://www.jhipster.tech/documentation-archive/v9.0.0-beta.0/code-quality/
287-
[Setting up Continuous Integration]: https://www.jhipster.tech/documentation-archive/v9.0.0-beta.0/setting-up-ci/
288-
[Node.js]: https://nodejs.org/
289-
[NPM]: https://www.npmjs.com/
290-
[Gatling]: https://gatling.io/
291-
[Webpack]: https://webpack.js.org/
292-
[BrowserSync]: https://www.browsersync.io/
293-
[Jest]: https://jestjs.io
294-
[Leaflet]: https://leafletjs.com/
295-
[DefinitelyTyped]: https://definitelytyped.org/
296-
[Angular CLI]: https://angular.dev/tools/cli
297-
[Cypress]: https://www.cypress.io/
280+
To configure CI for your project, run the ci-cd sub-generator (`jhipster ci-cd`), this will let you generate configuration files for a number of Continuous Integration systems. Consult the [Setting up Continuous Integration](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3/setting-up-ci/) page for more information.
281+
282+
## References
283+
284+
- [JHipster Homepage and latest documentation](https://www.jhipster.tech/)
285+
- [JHipster 9.0.0-beta.3 archive](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3)
286+
- [Using JHipster in development](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3/development/)
287+
- [Using Docker and Docker-Compose](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3/docker-compose)
288+
- [Using JHipster in production](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3/production/)
289+
- [Running tests page](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3/running-tests/)
290+
- [Code quality page](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3/code-quality/)
291+
- [Setting up Continuous Integration](https://www.jhipster.tech/documentation-archive/v9.0.0-beta.3/setting-up-ci/)
292+
- [Node.js](https://nodejs.org/)
293+
- [NPM](https://www.npmjs.com/)
294+
- [Gatling](https://gatling.io/)
295+
- [Webpack](https://webpack.js.org/)
296+
- [BrowserSync](https://www.browsersync.io/)
297+
- [Jest](https://jestjs.io)
298+
- [Leaflet](https://leafletjs.com/)
299+
- [DefinitelyTyped](https://definitelytyped.org/)
300+
- [Angular CLI](https://angular.dev/tools/cli)
301+
- [Cypress](https://www.cypress.io/)

angular.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,13 @@
9696
"defaultConfiguration": "development"
9797
},
9898
"test": {
99-
"builder": "@angular-builders/jest:run",
99+
"builder": "@angular/build:unit-test",
100100
"options": {
101-
"configPath": "jest.conf.js",
101+
"runner": "vitest",
102+
"buildTarget": "::development",
103+
"runnerConfig": true,
104+
"coverageReporters": ["text", "lcov"],
105+
"reporters": ["default", ["vitest-sonar-reporter", { "outputFile": "./target/test-results/TESTS-results-sonar-vitest.xml" }]],
102106
"tsConfig": "tsconfig.spec.json"
103107
}
104108
}

eslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default defineConfig(
1717
},
1818
},
1919
{ ignores: ['src/main/docker/'] },
20-
{ ignores: ['target/classes/static/', 'target/'] },
20+
{ ignores: ['target/classes/static/', 'target/', 'dist/'] },
2121
eslint.configs.recommended,
2222
{
2323
files: ['**/*.{js,cjs,mjs}'],

jest.conf.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)