forked from n.nasr/skills
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
842 B
47 lines
842 B
configurations {
|
|
developmentOnly
|
|
runtimeClasspath {
|
|
extendsFrom developmentOnly
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
developmentOnly "org.springframework.boot:spring-boot-devtools"
|
|
}
|
|
|
|
def profiles = "dev"
|
|
if (project.hasProperty("no-liquibase")) {
|
|
profiles += ",no-liquibase"
|
|
}
|
|
if (project.hasProperty("tls")) {
|
|
profiles += ",tls"
|
|
}
|
|
|
|
springBoot {
|
|
buildInfo {
|
|
properties {
|
|
time = null
|
|
}
|
|
}
|
|
}
|
|
|
|
bootRun {
|
|
args = []
|
|
}
|
|
|
|
|
|
processResources {
|
|
inputs.property('version', version)
|
|
inputs.property('springProfiles', profiles)
|
|
filesMatching("**/application.yml") {
|
|
filter {
|
|
it.replace("#project.version#", version)
|
|
}
|
|
}
|
|
filesMatching("**/bootstrap.yml") {
|
|
filter {
|
|
it.replace("#spring.profiles.active#", profiles)
|
|
}
|
|
}
|
|
}
|
|
|