1. 22 Jul, 2015 4 commits
    • Andy Wilkinson's avatar
      Fix Gradle plugin task dependencies broken by removal of app plugin · 434f528e
      Andy Wilkinson authored
      86732509 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
      434f528e
    • Andy Wilkinson's avatar
      Make use of Gradle's application plugin optional when using Boot plugin · 86732509
      Andy Wilkinson authored
      Previously, the Spring Boot Gradle plugin would always apply the
      application plugin to a project. It then piggy-backed on the application
      plugin’s mainClassName and applicationDefaultJvmArgs properties for the
      configuration of the bootRun task.
      
      This commit updates the Spring Boot Gradle plugin so that it no longer
      applies the application plugin. If the user applies the application
      plugin then its configuration will be used, but it’s a no longer
      requirement.
      
      Users who do not need the application plugin, but who were using the
      mainClassName or applicationDefaultJvmArgs properties will need to
      change their builds as a result of this change as those properties will
      no longer exist. As before, the mainClassName can be configured on the
      springBoot extension:
      
      springBoot {
      	mainClassName 'com.example.YourApplication'
      }
      
      The applicationDefaultJvmArgs property can be used, but it must now be
      declared with the project's ext block. For example:
      
      ext {
      	applicationDefaultJvmArgs = [ '-Dcom.example.property=true' ]
      }
      
      Closes gh-2679
      86732509
    • Andy Wilkinson's avatar
      Merge branch '1.2.x' · dbc22f6f
      Andy Wilkinson authored
      dbc22f6f
    • Andy Wilkinson's avatar
      Upgrade to Groovy 2.4.4 · 9b6538d5
      Andy Wilkinson authored
      Typically, a Spring Boot maintenance release would not move to a new
      minor version of a dependency. However there is a security
      vulnerability in Groovy [1] and 2.4.4 is the only release which
      contains a fix for it.
      
      The commit upgrades to 2.4.4, thereby ensuring that users of Groovy
      are not vulnerable by default. Users of Groovy whose applications are
      not affected by the vulnerability may choose to downgrade back to
      2.3.11 by overriding Spring Boot's dependency management.
      
      Closes gh-3540
      
      [1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3253
      9b6538d5
  2. 21 Jul, 2015 1 commit
  3. 20 Jul, 2015 14 commits
  4. 19 Jul, 2015 2 commits
  5. 17 Jul, 2015 9 commits
  6. 16 Jul, 2015 10 commits