Merge pull request #108 from wilkinsona/gradle-plugin-id

* gradle-plugin-id:
  Update generated build.gradle for Boot 1.3 to use latest plugin id
This commit is contained in:
Stephane Nicoll
2015-04-23 21:07:07 +02:00
2 changed files with 4 additions and 7 deletions

View File

@@ -16,10 +16,9 @@ buildscript {
apply plugin: '${language}'<% if (packaging=='war') { %>
apply plugin: 'eclipse-wtp'<% } else { %>
apply plugin: 'eclipse'<% } %>
apply plugin: 'idea' <% if (bootOneThreeAvailable) { %>
apply plugin: 'org.springframework.boot.spring-boot' <% } else { %>
apply plugin: 'spring-boot'
apply plugin: 'io.spring.dependency-management'<% } %><% if (packaging=='war') { %>
apply plugin: 'idea'
apply plugin: 'spring-boot' <% if (!bootOneThreeAvailable) { %>
apply plugin: 'io.spring.dependency-management' <% } %><% if (packaging=='war') { %>
apply plugin: 'war'
<% } %>

View File

@@ -311,7 +311,6 @@ class ProjectGeneratorTests {
.contains('classpath("io.spring.gradle:dependency-management-plugin:0.5.0.RELEASE")')
.contains("apply plugin: 'spring-boot'")
.contains("apply plugin: 'io.spring.dependency-management'")
.doesNotContain("apply plugin: 'org.springframework.boot.spring-boot'")
}
@Test
@@ -320,9 +319,8 @@ class ProjectGeneratorTests {
request.bootVersion = '1.3.0.BUILD-SNAPSHOT'
generateGradleBuild(request)
.contains("springBootVersion = '1.3.0.BUILD-SNAPSHOT'")
.contains("apply plugin: 'org.springframework.boot.spring-boot'")
.contains("apply plugin: 'spring-boot'")
.doesNotContain('classpath("io.spring.gradle:dependency-management-plugin:0.5.0.RELEASE")')
.doesNotContain("apply plugin: 'spring-boot'")
.doesNotContain("apply plugin: 'io.spring.dependency-management'")
}