Add gradle argument to stay on the pg container

This commit is contained in:
2021-07-17 15:15:59 +02:00
parent 95e7a32747
commit fdc6681f27

View File

@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val containerAlwaysOn: Boolean by project
plugins {
jacoco
@@ -86,7 +87,7 @@ apply(plugin = "docker-compose")
dockerCompose {
projectName = "postgres-json"
useComposeFiles = listOf("docker-compose.yml")
stopContainers = true
stopContainers = if (project.hasProperty("containerAlwaysOn")) containerAlwaysOn else false
isRequiredBy(project.tasks.test)
}