File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
templates/src/main/java/_package_/config Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -529,7 +529,7 @@ ${classProperties
529529 const getScopeForModule = ( moduleName : SpringBootModule ) : JavaArtifactType [ 'scope' ] => {
530530 if ( moduleName === 'spring-boot-properties-migrator' ) return 'runtime' ;
531531 if ( moduleName === 'spring-boot-configuration-processor' ) return 'annotationProcessor' ;
532- return moduleName . endsWith ( '-test' ) ? 'test' : undefined ;
532+ return moduleName . endsWith ( '-test' ) || moduleName . includes ( '-test-' ) ? 'test' : undefined ;
533533 } ;
534534 source . addSpringBootModule = ( ...moduleNames ) =>
535535 source . addJavaDependencies ?.(
Original file line number Diff line number Diff line change 1919package <%= packageName %> .config;
2020
2121<% _ if (reactive) { _% >
22- import com.fasterxml.jackson.databind.ObjectMapper;
22+ import <%= springBoot4 ? ' tools ' : ' com.fasterxml' %> .jackson.databind.ObjectMapper;
2323< % _ } _%>
2424<% _ if (! skipClient || devDatabaseTypeH2Any) { _% >
2525import tech.jhipster.config.JHipsterConstants;
You can’t perform that action at this time.
0 commit comments