Skip to content

Commit 171dbcc

Browse files
authored
sb4: adjusts (#31854)
1 parent b24587c commit 171dbcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generators/spring-boot/generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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?.(

generators/spring-boot/templates/src/main/java/_package_/config/WebConfigurer.java.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
package <%= 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) { _%>
2525
import tech.jhipster.config.JHipsterConstants;

0 commit comments

Comments
 (0)