Skip to content

Commit

Permalink
npmw created after ./npmw started
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Sep 12, 2024
1 parent 15cdb67 commit 5f3f9a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion generators/server/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {

if (field.fieldType === BYTE_BUFFER) {
this.log.warn(
`Cannot use validation in .jhipster/${entityName}.json for field ${stringifyApplicationData(field)}
`Cannot use validation in .jhipster/${entityName}.json for field ${stringifyApplicationData(field)}
Hibernate JPA 2 Metamodel does not work with Bean Validation 2 for LOB fields, so LOB validation is disabled`,
);
field.fieldValidate = false;
Expand Down
13 changes: 7 additions & 6 deletions generators/spring-boot/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ export default class SpringBootGenerator extends BaseApplicationGenerator {
searchEngine,
websocket,
cacheProvider,
skipClient,
clientFramework,
testFrameworks,
feignClient,
enableSwaggerCodegen,
Expand All @@ -157,10 +155,6 @@ export default class SpringBootGenerator extends BaseApplicationGenerator {
await this.composeWithJHipster('jhipster:java:jib');
await this.composeWithJHipster('jhipster:java:code-quality');

if (!skipClient && clientFramework !== 'no') {
await this.composeWithJHipster('jhipster:java:node');
}

if (enableSwaggerCodegen) {
await this.composeWithJHipster('jhipster:java:openapi-generator');
}
Expand Down Expand Up @@ -212,6 +206,13 @@ export default class SpringBootGenerator extends BaseApplicationGenerator {

get composingComponent() {
return this.asComposingComponentTaskGroup({
async composing() {
const { clientFramework, skipClient } = this.jhipsterConfigWithDefaults;
if (!skipClient && clientFramework !== 'no') {
// When using prompts, clientFramework will only be known after composing priority.
await this.composeWithJHipster('jhipster:java:node');
}
},
async composeLanguages() {
if (this.jhipsterConfigWithDefaults.enableTranslation) {
await this.composeWithJHipster(GENERATOR_LANGUAGES);
Expand Down

0 comments on commit 5f3f9a8

Please sign in to comment.