Files
sisvietnamvn_01/sisvietnamvn/gradle/profile_dev.gradle
T

49 lines
1.3 KiB
Groovy

dependencies {
developmentOnly "org.springframework.boot:spring-boot-devtools"
implementation "com.h2database:h2"
// jhipster-needle-gradle-dependency - JHipster will add additional dependencies here
}
springBoot {
buildInfo {
excludes = ['time']
}
}
bootRun {
args = ["--spring.profiles.active=${springProfiles}"]
}
processResources {
inputs.property('version', version)
inputs.property('springProfiles', springProfiles)
filesMatching("**/application.yml") {
filter {
it.replace("@project.version@", version)
}
filter {
it.replace("@spring.profiles.active@", springProfiles)
}
}
}
def integrationTest = tasks.register('integrationTest', Test) {
maxHeapSize = "1G"
useJUnitPlatform()
description = "Execute integration tests."
group = "verification"
include "**/*IT*", "**/*IntTest*"
testLogging {
events = ['FAILED', 'SKIPPED']
exceptionFormat = "full"
}
systemProperty('spring.profiles.active', springTestProfiles)
// uncomment if the tests reports are not generated
// see https://github.com/jhipster/generator-jhipster/pull/2771 and https://github.com/jhipster/generator-jhipster/pull/4484
// ignoreFailures true
reports.html.required = false
dependsOn(tasks.named('test'))
}