From 1a786fc788f8b0fb5c12d0cbe5737c4794982fa0 Mon Sep 17 00:00:00 2001 From: coursar Date: Thu, 2 May 2024 10:26:11 +0300 Subject: [PATCH] Change Spring Boot CLI init command docs default build system to gradle See gh-40603 --- .../org/springframework/boot/cli/command/init/InitCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java b/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java index 87796f93425..e60677acddc 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java @@ -165,7 +165,7 @@ public class InitCommand extends OptionParsingCommand { this.packaging = option(Arrays.asList("packaging", "p"), "Project packaging (for example 'jar')") .withRequiredArg(); this.build = option("build", "Build system to use (for example 'maven' or 'gradle')").withRequiredArg() - .defaultsTo("maven"); + .defaultsTo("gradle"); this.format = option("format", "Format of the generated content (for example 'build' for a build file, " + "'project' for a project archive)") .withRequiredArg()