mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-27 06:35:51 +08:00
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:
@@ -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'
|
||||
<% } %>
|
||||
|
||||
|
||||
@@ -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'")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user