dependencies { developmentOnly "org.springframework.boot:spring-boot-devtools:${springBootVersion}" implementation "mysql:mysql-connector-java" liquibaseRuntime "mysql:mysql-connector-java" testImplementation "org.testcontainers:mysql" } def profiles = "dev" if (project.hasProperty("no-liquibase")) { profiles += ",no-liquibase" } if (project.hasProperty("tls")) { profiles += ",tls" } springBoot { buildInfo { properties { time = null } } } bootRun { args = ["--spring.profiles.active=${profiles}"] } processResources { inputs.property('version', version) inputs.property('springProfiles', profiles) filesMatching("**/application.yml") { filter { it.replace("#project.version#", version) } filter { it.replace("#spring.profiles.active#", profiles) } } } task integrationTest(type: Test) { maxHeapSize = "1G" useJUnitPlatform() description = "Execute integration tests." group = "verification" include "**/*IT*", "**/*IntTest*" testLogging { events 'FAILED', 'SKIPPED' } systemProperty('spring.profiles.active', 'testdev') systemProperty('java.security.egd', 'file:/dev/./urandom') // 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.enabled = false } integrationTest.dependsOn test