Repository: jhipster/jhipster-lite
Pull request #11557 (2024-12-09 13:47:55)

Upgrade to Spring Boot 3.4.0 (generator)
- related to https://github.com/jhipster/jhipster-lite/issues/11403


Patch:
diff --git a/.github/workflows/publish-native-docker-image.yml b/.github/workflows/publish-native-docker-image.yml
index 85b404c25..84b7e9171 100644
--- a/.github/workflows/publish-native-docker-image.yml
+++ b/.github/workflows/publish-native-docker-image.yml
@@ -2,12 +2,18 @@ name: Build and publish native (GraalVM) images
 on:
   push:
     branches:
-      - main
-    tags:
-      - 'v*.*.*'
-  pull_request:
-    branches:
-      - main
+      - not-exist-branch
+# Disabled as related to https://github.com/spring-projects/spring-framework/issues/33936
+# Waiting next release of Spring Boot
+#on:
+#  push:
+#    branches:
+#      - main
+#    tags:
+#      - 'v*.*.*'
+#  pull_request:
+#    branches:
+#      - main
 
 jobs:
   build_native_docker_image:
diff --git a/README.md b/README.md
index cdc845c5f..ee99833c5 100644
--- a/README.md
+++ b/README.md
@@ -121,6 +121,8 @@ docker run -p 7471:7471 --rm docker.io/library/jhlite:<VERSION>
 
 ## Executable with Native Build Tools
 
+**IMPORTANT NOTE: this section is currently broken since JHLite v1.23.0. See this [issue](https://github.com/jhipster/jhipster-lite/issues/11558).**
+
 Use this option if you want to explore more options such as running your tests in a native image.
 The GraalVM native-image compiler should be installed and configured on your machine.
 
diff --git a/pom.xml b/pom.xml
index 5b2d940fc..229dd330a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
   <parent>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-parent</artifactId>
-    <version>3.3.5</version>
+    <version>3.4.0</version>
   </parent>
 
   <groupId>tech.jhipster.lite</groupId>
@@ -66,7 +66,7 @@
     <jacoco.version>0.8.12</jacoco.version>
     <jgit.version>7.1.0.202411261347-r</jgit.version>
     <archunit-junit5.version>1.3.0</archunit-junit5.version>
-    <springdoc-openapi.version>2.6.0</springdoc-openapi.version>
+    <springdoc-openapi.version>2.7.0</springdoc-openapi.version>
     <properties-maven-plugin.version>1.2.1</properties-maven-plugin.version>
     <sonar-maven-plugin.version>5.0.0.4389</sonar-maven-plugin.version>
     <apache-commons-io.version>2.18.0</apache-commons-io.version>
diff --git a/src/main/resources/generator/ci/gitlab/.gitlab-ci-gradle.yml.mustache b/src/main/resources/generator/ci/gitlab/.gitlab-ci-gradle.yml.mustache
index 67fa25af5..46f560b51 100644
--- a/src/main/resources/generator/ci/gitlab/.gitlab-ci-gradle.yml.mustache
+++ b/src/main/resources/generator/ci/gitlab/.gitlab-ci-gradle.yml.mustache
@@ -24,6 +24,5 @@ stages:
 Test:run-tests:
   stage: test
   script:
-    - ./gradlew test $GRADLE_CLI_OPTS
-    - ./gradlew integrationTest $GRADLE_CLI_OPTS
+    - ./gradlew clean integrationTest $GRADLE_CLI_OPTS
   interruptible: true
diff --git a/src/main/resources/generator/server/springboot/dbmigration/liquibase/main/LiquibaseConfiguration.java.mustache b/src/main/resources/generator/server/springboot/dbmigration/liquibase/main/LiquibaseConfiguration.java.mustache
index f9b410965..13b3e143e 100644
--- a/src/main/resources/generator/server/springboot/dbmigration/liquibase/main/LiquibaseConfiguration.java.mustache
+++ b/src/main/resources/generator/server/springboot/dbmigration/liquibase/main/LiquibaseConfiguration.java.mustache
@@ -83,9 +83,6 @@ class LiquibaseConfiguration {
     liquibase.setTestRollbackOnUpdate(liquibaseProperties.isTestRollbackOnUpdate());
     liquibase.setShouldRun(liquibaseProperties.isEnabled());
 
-    // https://github.com/liquibase/liquibase/issues/6501#issuecomment-2464909449
-    System.setProperty("liquibase.analytics.enabled", "false");
-
     return liquibase;
   }
 }


Test patch:
diff --git a/src/test/java/tech/jhipster/lite/module/domain/resource/JHipsterModuleTagTest.java b/src/test/java/tech/jhipster/lite/module/domain/resource/JHipsterModuleTagTest.java
index eba9b4d2b..d7d196ed0 100644
--- a/src/test/java/tech/jhipster/lite/module/domain/resource/JHipsterModuleTagTest.java
+++ b/src/test/java/tech/jhipster/lite/module/domain/resource/JHipsterModuleTagTest.java
@@ -26,7 +26,7 @@ class JHipsterModuleTagTest {
 
   @Test
   void shouldNotBuildWithTooLongTag() {
-    var stringTooLong = RandomStringUtils.randomAlphabetic(16);
+    var stringTooLong = RandomStringUtils.secure().nextNumeric(16);
     assertThatThrownBy(() -> new JHipsterModuleTag(stringTooLong)).isInstanceOf(StringTooLongException.class);
   }