You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
Groovy
50 lines
1.3 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenLocal()
|
|
maven { url "http://repo.springsource.org/libs-snapshot" }
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:0.5.0.BUILD-SNAPSHOT")
|
|
}
|
|
}
|
|
|
|
ext {
|
|
springBootVersion = '0.5.0.BUILD-SNAPSHOT'
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'spring-boot'
|
|
|
|
jar {
|
|
baseName = 'spring-boot-sample-actuator'
|
|
version = '0.5.0'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url "http://repo.springsource.org/libs-snapshot" }
|
|
}
|
|
|
|
dependencies {
|
|
configurations {
|
|
insecure.exclude module: 'spring-boot-starter-security'
|
|
}
|
|
compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
|
|
compile("org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}")
|
|
compile("org.springframework.boot:spring-boot-starter-security:${springBootVersion}")
|
|
testCompile("junit:junit:4.11")
|
|
insecure configurations.runtime
|
|
}
|
|
|
|
// Slightly odd requirement (package a jar file as an insecure app, exlcuding Spring Security)
|
|
// just to demonstrate the "customConfiguration" feature of the Boot gradle plugin.
|
|
springBoot {
|
|
customConfiguration = "insecure"
|
|
}
|
|
|
|
task wrapper(type: Wrapper) {
|
|
gradleVersion = '1.6'
|
|
}
|