Fix sonar task
This commit is contained in:
2
.env
2
.env
@@ -5,7 +5,7 @@ DATABASE_URL=jdbc:postgresql:dc-project
|
||||
APP_PORT=8080
|
||||
OPENAPI_PORT=8181
|
||||
SONARQUBE_PORT=9002
|
||||
SONARQUBE_DB_PORT=5433
|
||||
SONARQUBE_DB_PORT=5434
|
||||
|
||||
ELASTIC_REST=9200
|
||||
ELASTIC_NODES=9300
|
||||
|
||||
@@ -191,6 +191,8 @@ dockerCompose {
|
||||
useComposeFiles = listOf("docker-compose.yml")
|
||||
startedServices = listOf("db", "elasticsearch", "rabbitmq", "redis")
|
||||
stopContainers = false
|
||||
removeVolumes = false
|
||||
removeContainers = false
|
||||
isRequiredBy(project.tasks.run)
|
||||
createNested("test").apply {
|
||||
projectName = "dc-project_test"
|
||||
@@ -203,9 +205,12 @@ dockerCompose {
|
||||
projectName = "dc-project"
|
||||
useComposeFiles = listOf("docker-compose-sonar.yml")
|
||||
stopContainers = false
|
||||
removeVolumes = false
|
||||
removeContainers = false
|
||||
// isRequiredBy(project.tasks.sonarqube)
|
||||
}
|
||||
}
|
||||
tasks.sonarqube.configure { dependsOn(tasks.named("sonarqubeComposeUp")) }
|
||||
|
||||
publishing {
|
||||
if (versioning.info.dirty == false) {
|
||||
|
||||
Reference in New Issue
Block a user