diff --git a/generators/server/templates/pom.xml.ejs b/generators/server/templates/pom.xml.ejs index 5e588ba4a2ab..fbdb0321b1d6 100644 --- a/generators/server/templates/pom.xml.ejs +++ b/generators/server/templates/pom.xml.ejs @@ -117,14 +117,6 @@ - - tech.jhipster - jhipster-framework - - - jakarta.annotation - jakarta.annotation-api - com.fasterxml.jackson.datatype jackson-datatype-hppc @@ -133,140 +125,138 @@ com.fasterxml.jackson.datatype jackson-datatype-jsr310 +<%_ if (authenticationTypeOauth2) { _%> - org.springdoc -<%_ if (reactive) { _%> - springdoc-openapi-starter-webflux-api -<%_ } else { _%> - springdoc-openapi-starter-webmvc-api + com.github.ben-manes.caffeine + caffeine + <%_ } _%> +<%_ if ((applicationTypeMicroservice || applicationTypeGateway) && reactive) { _%> + + com.playtika.reactivefeign + feign-reactor-cloud - org.apache.commons - commons-lang3 + com.playtika.reactivefeign + feign-reactor-spring-configuration -<%_ if (enableSwaggerCodegen) { _%> - org.openapitools - jackson-databind-nullable - ${jackson-databind-nullable.version} + com.playtika.reactivefeign + feign-reactor-webclient <%_ } _%> - org.mapstruct - mapstruct - ${mapstruct.version} + com.tngtech.archunit + archunit-junit5-api + ${archunit-junit5.version} + test - org.mapstruct - mapstruct-processor - ${mapstruct.version} - provided + + + com.tngtech.archunit + archunit-junit5-engine + ${archunit-junit5.version} + test - org.springframework.boot - spring-boot-configuration-processor - provided + io.dropwizard.metrics + metrics-core +<%_ if (reactive) { _%> - org.springframework.boot - spring-boot-loader-tools + io.micrometer + context-propagation + ${micrometer-context-propagation.version} +<%_ } _%> - org.springframework.boot - spring-boot-starter-actuator + io.micrometer + micrometer-registry-prometheus <%_ if (reactive) { _%> - org.springframework.boot - spring-boot-starter-validation - - - org.springframework.data - spring-data-commons + io.netty + netty-resolver-dns-native-macos + osx-aarch_64 io.netty netty-tcnative-boringssl-static runtime - - io.netty - netty-resolver-dns-native-macos - osx-aarch_64 - io.projectreactor.tools blockhound-junit-platform ${blockhound-junit-platform.version} test +<%_ } _%> - - io.micrometer - context-propagation - ${micrometer-context-propagation.version} + jakarta.annotation + jakarta.annotation-api -<%_ } else { _%> - org.springframework.boot - spring-boot-starter-undertow + org.apache.commons + commons-lang3 -<%_ } _%> - org.springframework.boot - spring-boot-starter-logging + org.mapstruct + mapstruct + ${mapstruct.version} - org.springframework.boot - spring-boot-starter-mail + org.mapstruct + mapstruct-processor + ${mapstruct.version} + provided +<%_ if (enableSwaggerCodegen) { _%> - org.springframework.boot - spring-boot-starter-thymeleaf + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable.version} +<%_ } _%> - org.springframework.boot - spring-boot-starter-web<% if (reactive) { %>flux<% } %> + org.springdoc +<%_ if (reactive) { _%> + springdoc-openapi-starter-webflux-api +<%_ } else { _%> + springdoc-openapi-starter-webmvc-api +<%_ } _%> org.springframework.boot - spring-boot-starter-test - test + spring-boot-configuration-processor + provided org.springframework.boot - spring-boot-test - test + spring-boot-loader-tools - org.springframework.security - spring-security-test - test + org.springframework.boot + spring-boot-starter-actuator - com.tngtech.archunit - archunit-junit5-api - ${archunit-junit5.version} - test + org.springframework.boot + spring-boot-starter-logging - - - com.tngtech.archunit - archunit-junit5-engine - ${archunit-junit5.version} - test + org.springframework.boot + spring-boot-starter-mail <%_ if (authenticationTypeOauth2) { _%> - org.springframework.boot spring-boot-starter-oauth2-client +<%_ } _%> +<%_ if (authenticationTypeOauth2 || authenticationTypeJwt) { _%> - com.github.ben-manes.caffeine - caffeine + org.springframework.boot + spring-boot-starter-oauth2-resource-server <%_ } _%> <%_ if (authenticationTypeJwt || authenticationTypeSession) { _%> @@ -275,84 +265,108 @@ spring-boot-starter-security <%_ } _%> -<%_ if (authenticationTypeOauth2 || authenticationTypeJwt) { _%> org.springframework.boot - spring-boot-starter-oauth2-resource-server + spring-boot-starter-test + test + + + org.springframework.boot + spring-boot-starter-thymeleaf + +<%_ if (!reactive) { _%> + + org.springframework.boot + spring-boot-starter-undertow <%_ } _%> -<%_ if (applicationTypeGateway) { _%> +<%_ if (reactive) { _%> - org.springframework.cloud - spring-cloud-starter-gateway + org.springframework.boot + spring-boot-starter-validation <%_ } _%> -<%_ if (applicationTypeMicroservice || applicationTypeGateway) { _%> - org.springframework.cloud - spring-cloud-starter + org.springframework.boot + spring-boot-starter-web<% if (reactive) { %>flux<% } %> - <%_ if (reactive) { _%> - org.springframework.cloud - spring-cloud-starter-circuitbreaker-reactor-resilience4j + org.springframework.boot + spring-boot-test + test +<%_ if (applicationTypeMicroservice || applicationTypeGateway) { _%> - com.playtika.reactivefeign - feign-reactor-webclient + org.springframework.cloud + spring-cloud-starter +<%_ } _%> +<%_ if (serviceDiscoveryAny) { _%> - com.playtika.reactivefeign - feign-reactor-cloud + org.springframework.cloud + spring-cloud-starter-bootstrap +<%_ } _%> +<%_ if ((applicationTypeMicroservice || applicationTypeGateway) && reactive) { _%> - com.playtika.reactivefeign - feign-reactor-spring-configuration + org.springframework.cloud + spring-cloud-starter-circuitbreaker-reactor-resilience4j - <%_ } else { _%> +<%_ } _%> +<%_ if ((applicationTypeMicroservice || applicationTypeGateway) && !reactive) { _%> org.springframework.cloud spring-cloud-starter-circuitbreaker-resilience4j - <%_ } _%> +<%_ } _%> +<%_ if (serviceDiscoveryAny && serviceDiscoveryEureka) { _%> - org.springframework.retry - spring-retry + org.springframework.cloud + spring-cloud-starter-config <%_ } _%> -<%_ if (serviceDiscoveryAny) { _%> +<%_ if (serviceDiscoveryAny && serviceDiscoveryConsul) { _%> org.springframework.cloud - spring-cloud-starter-bootstrap + spring-cloud-starter-consul-config - <%_ if (serviceDiscoveryEureka) { _%> org.springframework.cloud - spring-cloud-starter-netflix-eureka-client + spring-cloud-starter-consul-discovery +<%_ } _%> +<%_ if (applicationTypeGateway) { _%> org.springframework.cloud - spring-cloud-starter-config + spring-cloud-starter-gateway - <%_ } _%> - <%_ if (serviceDiscoveryConsul) { _%> +<%_ } _%> +<%_ if (serviceDiscoveryAny && serviceDiscoveryEureka) { _%> org.springframework.cloud - spring-cloud-starter-consul-discovery + spring-cloud-starter-netflix-eureka-client +<%_ } _%> +<%_ if (reactive) { _%> - org.springframework.cloud - spring-cloud-starter-consul-config + org.springframework.data + spring-data-commons - <%_ } _%> <%_ } _%> +<%_ if (applicationTypeMicroservice || applicationTypeGateway) { _%> - io.micrometer - micrometer-registry-prometheus + org.springframework.retry + spring-retry +<%_ } _%> - io.dropwizard.metrics - metrics-core + org.springframework.security + spring-security-test + test + + + tech.jhipster + jhipster-framework