Skip to content

Commit

Permalink
Merge pull request #40603 from coursar
Browse files Browse the repository at this point in the history
* pr/40603:
  Polish "Change Spring Boot CLI init command docs default build system to gradle"
  Change Spring Boot CLI init command docs default build system to gradle

Closes gh-40603
  • Loading branch information
mhalbritter committed May 2, 2024
2 parents e471710 + 64b3020 commit d19df3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private void projectGenerationOptions() {
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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ void overwriteFileInArchive(@TempDir File tempDir) throws Exception {
void parseTypeOnly() throws Exception {
this.handler.disableProjectGeneration();
this.command.run("-t=ant-project");
assertThat(this.handler.lastRequest.getBuild()).isEqualTo("maven");
assertThat(this.handler.lastRequest.getBuild()).isEqualTo("gradle");
assertThat(this.handler.lastRequest.getFormat()).isEqualTo("project");
assertThat(this.handler.lastRequest.isDetectType()).isFalse();
assertThat(this.handler.lastRequest.getType()).isEqualTo("ant-project");
Expand All @@ -364,7 +364,7 @@ void parseBuildOnly() throws Exception {
void parseFormatOnly() throws Exception {
this.handler.disableProjectGeneration();
this.command.run("--format=web");
assertThat(this.handler.lastRequest.getBuild()).isEqualTo("maven");
assertThat(this.handler.lastRequest.getBuild()).isEqualTo("gradle");
assertThat(this.handler.lastRequest.getFormat()).isEqualTo("web");
assertThat(this.handler.lastRequest.isDetectType()).isTrue();
assertThat(this.handler.lastRequest.getType()).isNull();
Expand Down

0 comments on commit d19df3d

Please sign in to comment.