2014-06-17 01:24:09 +08:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${project.bootVersion}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
2016-10-05 21:54:23 +08:00
|
|
|
apply plugin: 'org.springframework.boot'
|
2014-06-17 01:24:09 +08:00
|
|
|
|
|
|
|
group = 'installer'
|
|
|
|
version = '0.0.0'
|
|
|
|
|
2016-03-29 18:03:47 +08:00
|
|
|
if (project.hasProperty('bootRunMain')) {
|
|
|
|
bootRun {
|
|
|
|
main = 'org.springframework.boot.SpringApplication'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (project.hasProperty('nonJavaExecRun')) {
|
|
|
|
task run { }
|
2014-06-17 01:24:09 +08:00
|
|
|
}
|
|
|
|
|
2016-03-29 18:03:47 +08:00
|
|
|
|
2014-06-17 01:24:09 +08:00
|
|
|
jar {
|
|
|
|
baseName = 'installer'
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile "org.springframework.boot:spring-boot-starter"
|
|
|
|
}
|