Commit b1c0a7cd authored by Andy Wilkinson's avatar Andy Wilkinson

Upgrade Gradle plugin’s ID so it’s suitable for the Plugin Portal

Gradle’s plugin portal requires each plugin’s ID to be in a namespace.
Our existing ID, spring-boot, does not meet this requirement. This
commit changes the plugin’s ID to org.springframework.boot.spring-boot.
Note that, as is recommended [1], the plugin’s ID does not include
“gradle”.

See gh-1567

[1] http://plugins.gradle.org/submit
parent 0f51a536
...@@ -182,7 +182,7 @@ the `spring-boot` plugin: ...@@ -182,7 +182,7 @@ the `spring-boot` plugin:
classpath("org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}") classpath("org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}")
} }
} }
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
---- ----
If you are using a milestone or snapshot release you will also need to add appropriate If you are using a milestone or snapshot release you will also need to add appropriate
......
...@@ -235,7 +235,7 @@ endif::release[] ...@@ -235,7 +235,7 @@ endif::release[]
} }
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
jar { jar {
baseName = 'myproject' baseName = 'myproject'
......
...@@ -170,7 +170,7 @@ managed by Spring Boot: ...@@ -170,7 +170,7 @@ managed by Spring Boot:
} }
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
repositories { jcenter() } repositories { jcenter() }
dependencies { dependencies {
......
...@@ -8,7 +8,7 @@ buildscript { ...@@ -8,7 +8,7 @@ buildscript {
} }
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
repositories { repositories {
mavenLocal() mavenLocal()
......
...@@ -9,7 +9,7 @@ buildscript { ...@@ -9,7 +9,7 @@ buildscript {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
jar { jar {
baseName = 'classifier-extension' baseName = 'classifier-extension'
......
...@@ -9,7 +9,7 @@ buildscript { ...@@ -9,7 +9,7 @@ buildscript {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
jar { jar {
baseName = 'classifier' baseName = 'classifier'
......
...@@ -7,7 +7,7 @@ buildscript { ...@@ -7,7 +7,7 @@ buildscript {
} }
} }
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
group = 'flatdir' group = 'flatdir'
version = '0.0.0' version = '0.0.0'
......
...@@ -9,7 +9,7 @@ buildscript { ...@@ -9,7 +9,7 @@ buildscript {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
group = 'installer' group = 'installer'
version = '0.0.0' version = '0.0.0'
......
...@@ -9,7 +9,7 @@ buildscript { ...@@ -9,7 +9,7 @@ buildscript {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
group = 'installer' group = 'installer'
version = '0.0.0' version = '0.0.0'
...@@ -17,7 +17,7 @@ version = '0.0.0' ...@@ -17,7 +17,7 @@ version = '0.0.0'
install { install {
repositories.mavenInstaller { repositories.mavenInstaller {
pom.project { pom.project {
parent { parent {
groupId 'org.springframework.boot' groupId 'org.springframework.boot'
artifactId 'spring-boot-starter-parent' artifactId 'spring-boot-starter-parent'
version "${project.bootVersion}" version "${project.bootVersion}"
......
...@@ -9,7 +9,7 @@ buildscript { ...@@ -9,7 +9,7 @@ buildscript {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'maven' apply plugin: 'maven'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
group = 'installer' group = 'installer'
version = '0.0.0' version = '0.0.0'
......
...@@ -15,7 +15,7 @@ subprojects { ...@@ -15,7 +15,7 @@ subprojects {
} }
} }
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
repositories { repositories {
mavenLocal() mavenLocal()
......
...@@ -8,7 +8,7 @@ buildscript { ...@@ -8,7 +8,7 @@ buildscript {
} }
project(':projectA') { project(':projectA') {
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
repositories { repositories {
mavenLocal() mavenLocal()
} }
......
...@@ -8,7 +8,7 @@ buildscript { ...@@ -8,7 +8,7 @@ buildscript {
} }
project('main') { project('main') {
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
apply plugin: 'java' apply plugin: 'java'
repositories { repositories {
......
...@@ -7,7 +7,7 @@ buildscript { ...@@ -7,7 +7,7 @@ buildscript {
} }
} }
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
group = 'nojar' group = 'nojar'
version = '0.0.0' version = '0.0.0'
......
...@@ -12,7 +12,7 @@ repositories { ...@@ -12,7 +12,7 @@ repositories {
mavenCentral() mavenCentral()
} }
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
apply plugin: 'java' apply plugin: 'java'
dependencies { dependencies {
......
...@@ -10,7 +10,7 @@ buildscript { ...@@ -10,7 +10,7 @@ buildscript {
} }
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
repositories { repositories {
mavenLocal() mavenLocal()
......
...@@ -10,7 +10,7 @@ buildscript { ...@@ -10,7 +10,7 @@ buildscript {
} }
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
repositories { repositories {
mavenLocal() mavenLocal()
......
...@@ -22,7 +22,7 @@ dependencies { ...@@ -22,7 +22,7 @@ dependencies {
springBootStarter "org.springframework.boot:${project.starter}:${project.bootVersion}" springBootStarter "org.springframework.boot:${project.starter}:${project.bootVersion}"
} }
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
task checkCommonsLogging { task checkCommonsLogging {
doFirst { doFirst {
......
...@@ -14,10 +14,10 @@ repositories { ...@@ -14,10 +14,10 @@ repositories {
mavenCentral() mavenCentral()
} }
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
apply plugin: 'war' apply plugin: 'war'
dependencies { dependencies {
compile 'org.springframework.boot:spring-boot-starter-freemarker' compile 'org.springframework.boot:spring-boot-starter-freemarker'
providedRuntime "org.springframework.boot:spring-boot-starter-$servletContainer" providedRuntime "org.springframework.boot:spring-boot-starter-$servletContainer"
} }
......
...@@ -18,7 +18,7 @@ buildscript { ...@@ -18,7 +18,7 @@ buildscript {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
jar { jar {
baseName = 'spring-boot-sample-actuator' baseName = 'spring-boot-sample-actuator'
......
...@@ -18,7 +18,7 @@ buildscript { ...@@ -18,7 +18,7 @@ buildscript {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
jar { jar {
baseName = 'spring-boot-sample-profile' baseName = 'spring-boot-sample-profile'
......
...@@ -18,7 +18,7 @@ buildscript { ...@@ -18,7 +18,7 @@ buildscript {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
jar { jar {
baseName = 'spring-boot-sample-simple' baseName = 'spring-boot-sample-simple'
......
...@@ -19,7 +19,7 @@ buildscript { ...@@ -19,7 +19,7 @@ buildscript {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'eclipse-wtp' apply plugin: 'eclipse-wtp'
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
apply plugin: 'war' apply plugin: 'war'
mainClassName = "sample.ui.SampleWebStaticApplication" mainClassName = "sample.ui.SampleWebStaticApplication"
......
...@@ -21,7 +21,7 @@ buildscript { ...@@ -21,7 +21,7 @@ buildscript {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'spring-boot' apply plugin: 'org.springframework.boot.spring-boot'
mainClassName = "sample.ui.SampleWebUiApplication" mainClassName = "sample.ui.SampleWebUiApplication"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment