spring-boot/spring-boot-tools
Andy Wilkinson 434f528e0a Fix Gradle plugin task dependencies broken by removal of app plugin
8673250 updated the plugin so that the application plugin is no longer
applied by default. This exposed three problems:

 1. bootRepackage may run before findMainClass has run, leaving it with
    an unknown main class.
 2. findMainClass may run before the classes have been built, making it
    unable to find the main class by examining the class files
 3. The project's mainClassName property was still being used as a
    convention for the bootRun task's main property. If the application
    plugin has not be applied, then this property does not exist.

The first problem has been addressed by configuring bootRepackage to
depend on findMainClass.

The second problem has been addressed by configuring the main source
set's output as an input of findMainClass, and configuring findMainClass
to depend on the tasks that build the output.

The third problem has been addressed by only using the mainClassName
property if it exists and its value is not null. We then fallback to
using the mainClassName property on the project's extra properties in
the same way. 

See gh-2679
2015-07-22 13:47:29 +01:00
..
spring-boot-antlib
spring-boot-configuration-metadata Polish 2015-07-16 12:56:49 -07:00
spring-boot-configuration-processor Add @DeprecatedConfigurationProperties annotation 2015-07-17 14:14:37 -07:00
spring-boot-gradle-plugin Fix Gradle plugin task dependencies broken by removal of app plugin 2015-07-22 13:47:29 +01:00
spring-boot-loader Add missing jar (.gitignored) 2015-07-14 12:44:23 +01:00
spring-boot-loader-tools Fix typos 2015-07-15 15:45:02 +02:00
spring-boot-maven-plugin Remove unnecessary keyword 2015-07-09 14:33:01 +02:00
pom.xml Add configuration meta-data parser 2015-07-13 11:53:31 +02:00