2018-04-03 02:20:28 -04:00
|
|
|
buildscript {
|
|
|
|
ext {
|
|
|
|
springBootVersion = '2.0.0.RELEASE'
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'org.springframework.boot'
|
|
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
|
|
|
|
group = 'org.baeldung'
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile('org.springframework.boot:spring-boot-starter')
|
|
|
|
testCompile('org.springframework.boot:spring-boot-starter-test')
|
|
|
|
}
|
|
|
|
|
|
|
|
springBoot {
|
|
|
|
mainClassName = 'org.baeldung.DemoApplication'
|
2018-04-03 19:24:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
bootJar {
|
|
|
|
// This is overridden by the mainClassName in springBoot{} and added here for reference purposes.
|
|
|
|
mainClassName = 'org.baeldung.DemoApplication'
|
2018-04-03 02:20:28 -04:00
|
|
|
}
|