Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Oct 23, 2024
1 parent 37629da commit 89ea24a
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`generator - spring-boot:graalvm with default options should call source snapshot 1`] = `
exports[`generator - java:graalvm with default options should call source snapshot 1`] = `
{
"addMavenDefinition": [
{
Expand Down Expand Up @@ -164,7 +164,7 @@ exports[`generator - spring-boot:graalvm with default options should call source
}
`;

exports[`generator - spring-boot:graalvm with default options should call source snapshot 2`] = `
exports[`generator - java:graalvm with default options should call source snapshot 2`] = `
{
"addGradleDependencyCatalogPlugin": [
{
Expand Down Expand Up @@ -217,7 +217,7 @@ exports[`generator - spring-boot:graalvm with default options should call source
}
`;

exports[`generator - spring-boot:graalvm with default options should match files snapshot 1`] = `
exports[`generator - java:graalvm with default options should match files snapshot 1`] = `
{
".yo-rc.json": {
"stateCleared": "modified",
Expand All @@ -231,7 +231,7 @@ exports[`generator - spring-boot:graalvm with default options should match files
}
`;

exports[`generator - spring-boot:graalvm with default options should match files snapshot 2`] = `
exports[`generator - java:graalvm with default options should match files snapshot 2`] = `
{
".yo-rc.json": {
"stateCleared": "modified",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
This is a fragment file, it will be merged into to root template if available.
EJS fragments will process % delimiter tags in template and & delimiter tags in the merge process.
-%>
<&_ if (fragment.introSection) { -&>
The project has also been extended with [JHipster Native](https://github.com/jhipster/generator-jhipster-native) Blueprint.
See what's been added here to learn [About Native Build](#about-native-build).

<&_ } -&>

<&_ if (fragment.othersSection) { -&>
### About Native Build

Expand All @@ -40,17 +34,20 @@ sdk install java 21-graalce
To build a native image, execute the following command:
```bash
npm run native-package
# <%- packageJsonScripts['native-package'] %>
```

After that, set up peripheral services like PostgreSQL using `npm run services:up` and ensure everything is ready.
After that, set up peripheral services like PostgreSQL using `npm run services:up`(<%- packageJsonScripts['services:up'] %>) and ensure everything is ready.

Lastly, run the Native image and experience its fast startup 😊.
```bash
npm run native-start
# <%- packageJsonScripts['native-start'] %>
```

If you've enabled e2e testing with Cypress, you can verify its operation using the following command:
```bash
npm run native-e2e
# <%- packageJsonScripts['native-e2e'] %>
```
<&_ } -&>
2 changes: 1 addition & 1 deletion generators/spring-boot/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default class SpringBootGenerator extends BaseApplicationGenerator {
await this.composeWithJHipster('jhipster:java:code-quality');

if (this.jhipsterConfigWithDefaults.graalvmSupport) {
await this.composeWithJHipster('jhipster:spring-boot:graalvm');
await this.composeWithJHipster('jhipster:java:graalvm');
}

if (enableSwaggerCodegen) {
Expand Down

0 comments on commit 89ea24a

Please sign in to comment.