Update samples with Gradle configuration to align with new plugin
This commit is contained in:
@@ -19,10 +19,7 @@ apply plugin: 'java'
|
||||
apply plugin: 'eclipse'
|
||||
apply plugin: 'idea'
|
||||
apply plugin: 'org.springframework.boot'
|
||||
|
||||
jar {
|
||||
baseName = 'spring-boot-sample-actuator'
|
||||
}
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
|
||||
group = 'org.springframework.boot'
|
||||
version = springBootVersion
|
||||
@@ -37,10 +34,6 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
configurations {
|
||||
insecure.exclude module: 'spring-boot-starter-security'
|
||||
}
|
||||
|
||||
compile("org.springframework.boot:spring-boot-starter-actuator")
|
||||
compile("org.springframework.boot:spring-boot-starter-jdbc")
|
||||
compile("org.springframework.boot:spring-boot-starter-security")
|
||||
@@ -50,18 +43,6 @@ dependencies {
|
||||
compileOnly('org.springframework.boot:spring-boot-configuration-processor')
|
||||
|
||||
testCompile("org.springframework.boot:spring-boot-starter-test")
|
||||
|
||||
insecure configurations.runtime
|
||||
}
|
||||
|
||||
// Slightly odd requirement (package a jar file as an insecure app, excluding Spring Security)
|
||||
// just to demonstrate the "customConfiguration" feature of the Boot gradle plugin.
|
||||
springBoot {
|
||||
customConfiguration = "insecure"
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '1.6'
|
||||
}
|
||||
|
||||
springBoot {
|
||||
|
||||
Reference in New Issue
Block a user