Skip to content

Commit 54a5718

Browse files
author
Phillip Webb
committed
Minor polish
1 parent f70d6fb commit 54a5718

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/task

1 file changed

+1
-1
lines changed

spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/task/Repackage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ else if (extension.getCustomConfiguration() != null) {
7373
libraries.setCustomConfigurationName(extension.getCustomConfiguration());
7474
}
7575
JavaExec runner = (JavaExec) project.getTasks().findByName("run");
76-
if (runner!=null && mainClass==null) {
76+
if (runner != null && this.mainClass == null) {
7777
getLogger().info("Found main in run task: " + runner.getMain());
7878
setMainClass(runner.getMain());
7979
}

0 commit comments

Comments
 (0)