|
|
@ -68,7 +68,7 @@ class MainClassConventionTests {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void springBootExtensionMainClassNameIsUsedInPreferenceToMainClassNameProjectProperty() throws Exception {
|
|
|
|
void springBootExtensionMainClassNameIsUsedInPreferenceToJavaApplicationExtensionMainClassName() throws Exception {
|
|
|
|
this.project.getPlugins().apply(ApplicationPlugin.class);
|
|
|
|
this.project.getPlugins().apply(ApplicationPlugin.class);
|
|
|
|
JavaApplication javaApplication = this.project.getExtensions().findByType(JavaApplication.class);
|
|
|
|
JavaApplication javaApplication = this.project.getExtensions().findByType(JavaApplication.class);
|
|
|
|
javaApplication.setMainClassName("com.example.JavaApplicationMainClass");
|
|
|
|
javaApplication.setMainClassName("com.example.JavaApplicationMainClass");
|
|
|
|