Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only add applicationIndex if there is more than one application #26169

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions generators/jdl/__snapshots__/generator.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ exports[`generator - jdl for application jdl with valid jdl should write expecte
".yo-rc.json": {
"contents": "{
"generator-jhipster": {
"applicationIndex": 0,
"baseName": "jhipster",
"entities": []
}
Expand Down Expand Up @@ -109,7 +108,6 @@ exports[`generator - jdl for one application and entity jdl with valid jdl shoul
".yo-rc.json": {
"contents": "{
"generator-jhipster": {
"applicationIndex": 0,
"baseName": "jhipster",
"entities": [
"Foo"
Expand Down Expand Up @@ -254,7 +252,6 @@ exports[`generator - jdl with a gateway generating json should generate expected
".yo-rc.json": {
"contents": "{
"generator-jhipster": {
"applicationIndex": 0,
"applicationType": "gateway",
"applications": {
"ms": {}
Expand Down
1 change: 0 additions & 1 deletion generators/jdl/generator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ describe(`generator - ${generator}`, () => {
".yo-rc.json": {
"contents": "{
"generator-jhipster": {
"applicationIndex": 0,
"baseName": "jhipster",
"blueprints": [
{
Expand Down
2 changes: 1 addition & 1 deletion generators/jdl/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export default class JdlGenerator extends BaseGenerator {
app.sharedFs = createMemFs();
}
}
addApplicationIndex(this.applications);
}
addApplicationIndex(this.applications);
customizeForMicroservices(this.exportedApplicationsWithEntities);
},
async generateJson() {
Expand Down
Loading