Repository: jhipster/jhipster-lite
Pull request #12699 (2025-06-01 16:47:41)

Remove double empty lines in build.gradle.kts


Patch:
diff --git a/src/main/java/tech/jhipster/lite/module/infrastructure/secondary/javadependency/gradle/GradleCommandHandler.java b/src/main/java/tech/jhipster/lite/module/infrastructure/secondary/javadependency/gradle/GradleCommandHandler.java
index 40d4c75d3..f6c489d2d 100644
--- a/src/main/java/tech/jhipster/lite/module/infrastructure/secondary/javadependency/gradle/GradleCommandHandler.java
+++ b/src/main/java/tech/jhipster/lite/module/infrastructure/secondary/javadependency/gradle/GradleCommandHandler.java
@@ -526,7 +526,7 @@ public class GradleCommandHandler implements JavaDependenciesCommandHandler {
         (contentBeforeReplacement, newText) -> !contentBeforeReplacement.contains(newText),
         GRADLE_PLUGIN_PROJECT_EXTENSION_CONFIGURATION_NEEDLE
       ),
-      LINE_BREAK + pluginConfiguration.get()
+      pluginConfiguration.get()
     );
     fileReplacer.handle(
       projectFolder,
diff --git a/src/main/resources/generator/buildtool/gradle/build.gradle.kts.mustache b/src/main/resources/generator/buildtool/gradle/build.gradle.kts.mustache
index 6f5e6de1a..47d9960af 100644
--- a/src/main/resources/generator/buildtool/gradle/build.gradle.kts.mustache
+++ b/src/main/resources/generator/buildtool/gradle/build.gradle.kts.mustache
@@ -12,6 +12,7 @@ java {
     languageVersion = JavaLanguageVersion.of({{javaVersion}})
   }
 }
+
 // jhipster-needle-gradle-plugins-configurations
 
 repositories {


Test patch:
diff --git a/src/test/java/tech/jhipster/lite/module/infrastructure/secondary/javadependency/gradle/GradleCommandHandlerTest.java b/src/test/java/tech/jhipster/lite/module/infrastructure/secondary/javadependency/gradle/GradleCommandHandlerTest.java
index 75523b48a..0044944e5 100644
--- a/src/test/java/tech/jhipster/lite/module/infrastructure/secondary/javadependency/gradle/GradleCommandHandlerTest.java
+++ b/src/test/java/tech/jhipster/lite/module/infrastructure/secondary/javadependency/gradle/GradleCommandHandlerTest.java
@@ -1513,7 +1513,6 @@ class GradleCommandHandlerTest {
             }
           }
 
-
           checkstyle {
             toolVersion = libs.versions.checkstyle.get()
           }
diff --git a/src/test/resources/tech/jhipster/lite/module/infrastructure/secondary/FileSystemJHipsterModulesRepositoryTest.shouldApplyModuleToGradleProject.build.gradle.kts.approved.txt b/src/test/resources/tech/jhipster/lite/module/infrastructure/secondary/FileSystemJHipsterModulesRepositoryTest.shouldApplyModuleToGradleProject.build.gradle.kts.approved.txt
index 7bfb02c39..429365ca9 100644
--- a/src/test/resources/tech/jhipster/lite/module/infrastructure/secondary/FileSystemJHipsterModulesRepositoryTest.shouldApplyModuleToGradleProject.build.gradle.kts.approved.txt
+++ b/src/test/resources/tech/jhipster/lite/module/infrastructure/secondary/FileSystemJHipsterModulesRepositoryTest.shouldApplyModuleToGradleProject.build.gradle.kts.approved.txt
@@ -30,7 +30,6 @@ tasks.jacocoTestReport {
   executionData.setFrom(fileTree(buildDir).include("**/jacoco/test.exec", "**/jacoco/integrationTest.exec"))
 }
 
-
 checkstyle {
   toolVersion = libs.versions.checkstyle.get()
 }