From 10d01934b92c36da369df3e3b100f15d7a74918f Mon Sep 17 00:00:00 2001 From: Frederik Hahne Date: Mon, 4 Dec 2023 19:23:53 +0000 Subject: [PATCH] align maven plugin version with main generator --- generators/constants.cjs | 8 +++--- generators/server/generator.js | 5 ++-- generators/server/templates/pom.xml.ejs | 33 ++++++++++++++----------- 3 files changed, 24 insertions(+), 22 deletions(-) diff --git a/generators/constants.cjs b/generators/constants.cjs index 2b7cc53..f7eb701 100644 --- a/generators/constants.cjs +++ b/generators/constants.cjs @@ -52,9 +52,9 @@ module.exports = { }, }, versions: { - micronaut: '4.0.3', - micronautData: '4.0.4', - micronautDiscoveryClient: '4.0.1', + micronaut: '4.2.0', + micronautData: '4.2.0', + micronautDiscoveryClient: '4.2.0', micronautOpenApi: '4.8.7', netty: '4.1.97.Final', rxJava3: '2.3.0', @@ -74,6 +74,6 @@ module.exports = { caffeine: '3.1.1', archunit: '0.23.1', simplejavamail: '7.5.0', - testcontainers: '1.17.3', + testcontainers: '1.19.3', }, }; diff --git a/generators/server/generator.js b/generators/server/generator.js index 5381cd9..8a14d83 100644 --- a/generators/server/generator.js +++ b/generators/server/generator.js @@ -116,9 +116,8 @@ export default class extends ServerGenerator { application.MN_CONSTANTS = mnConstants; application.gradleVersion = mnConstants.GRADLE_VERSION; application.dockerContainers.redis = mnConstants.DOCKER_REDIS; - application.jhipsterDependenciesVersion = '7.9.3'; - // Revert to java 11 to fix redis. - application.JAVA_VERSION = '11'; + application.jhipsterDependenciesVersion = '8.0.0'; + application.JAVA_VERSION = '17'; // Add liquibase h2 database references. application.liquibaseAddH2Properties = true; // Micronaut is a java project. diff --git a/generators/server/templates/pom.xml.ejs b/generators/server/templates/pom.xml.ejs index bbcc6b9..fc16450 100644 --- a/generators/server/templates/pom.xml.ejs +++ b/generators/server/templates/pom.xml.ejs @@ -118,34 +118,37 @@ _%> <%_ if (cacheProviderEhcache) { _%> 3.10.8 <%_ } _%> + <%- javaDependencies['archunit-junit5'] %> <%= versions.testcontainers %> - 3.1.0 - 3.10.1 - 3.1.1 + <%- javaDependencies['maven-clean-plugin'] %> + <%- javaDependencies['maven-compiler-plugin'] %> + <%- javaDependencies['maven-javadoc-plugin'] %> 2.10 - 3.0.0-M3 - 3.0.0-M3 - 2.2.1 - 3.1.0 - 3.0.0-M4 - 3.2.4 - 3.1.1 - 1.6.0 - 3.2.3 + <%- javaDependencies['maven-site-plugin'] %> + <%- javaDependencies['maven-enforcer-plugin'] %> 3.0.0-M3 + <%- javaDependencies['maven-failsafe-plugin'] %> + <%- javaDependencies['maven-idea-plugin'] %> + <%- javaDependencies['maven-resources-plugin'] %> + <%- javaDependencies['maven-surefire-plugin'] %> + 3.5.1 + <%- javaDependencies['maven-checkstyle-plugin'] %> + 3.1.1 + 4.2.0 + <%- javaDependencies['spotless-maven-plugin'] %> <%_ if (!skipClient) { _%> 1.10.0 <%_ } _%> - 4.0.2 + <%- javaDependencies['git-commit-id-maven-plugin'] %> <%= javaDependencies['jacoco-maven-plugin'] %> <%= javaDependencies['jib-maven-plugin'] %> <%- dockerContainers.javaJre %> amd64 1.0.0 - 1.0.0 - 3.7.0.1746 + <%- javaDependencies['properties-maven-plugin'] %> + <%- javaDependencies['sonar-maven-plugin'] %> ${project.build.directory}/jacoco ${jacoco.reportFolder}/test.exec ${jacoco.reportFolder}/integrationTest.exec -- 2.42.1