Skip to content

Commit

Permalink
set modernizer.failOnViolations
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Apr 9, 2024
1 parent 04e7429 commit c7250a2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions generators/micronaut/generator.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import os from 'os';
import chalk from 'chalk';
import BaseApplicationGenerator from 'generator-jhipster/generators/server';
import {
GENERATOR_DOCKER,
GENERATOR_GRADLE,
GENERATOR_LANGUAGES,
GENERATOR_LIQUIBASE,
GENERATOR_MAVEN,
GENERATOR_SERVER,
} from 'generator-jhipster/generators';
import { GENERATOR_DOCKER, GENERATOR_LANGUAGES, GENERATOR_LIQUIBASE, GENERATOR_SERVER } from 'generator-jhipster/generators';
import { createNeedleCallback, createBase64Secret } from 'generator-jhipster/generators/base/support';
import { addJavaAnnotation } from 'generator-jhipster/generators/java/support';
import mnConstants from '../constants.cjs';
Expand Down Expand Up @@ -183,6 +176,11 @@ export default class extends BaseApplicationGenerator {
version: javaDependencies['logstash-logback-encoder'],
},
]);
if (application.buildToolMaven) {
source.addMavenDefinition({
properties: [{ property: 'modernizer.failOnViolations', value: 'false' }],
});
}
},
sqlDependencies({ application, source }) {
if (application.databaseTypeSql) {
Expand Down

0 comments on commit c7250a2

Please sign in to comment.