
To be compatible with Gradle's plugin portal, plugins must have an ID that uses a reverse domain name. This means that spring-boot is not compatible. This commit introduces a new ID, org.springframework.boot, and deprecates the old ID. Closes gh-6997
40 lines
616 B
Groovy
40 lines
616 B
Groovy
buildscript {
|
|
repositories {
|
|
mavenLocal()
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${project.bootVersion}")
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'org.springframework.boot'
|
|
|
|
group = 'installer'
|
|
version = '0.0.0'
|
|
|
|
if (project.hasProperty('bootRunMain')) {
|
|
bootRun {
|
|
main = 'org.springframework.boot.SpringApplication'
|
|
}
|
|
}
|
|
|
|
if (project.hasProperty('nonJavaExecRun')) {
|
|
task run { }
|
|
}
|
|
|
|
|
|
jar {
|
|
baseName = 'installer'
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.springframework.boot:spring-boot-starter"
|
|
}
|