From c8fdcad821dcc47ba09362b8a2a6ff55098479c7 Mon Sep 17 00:00:00 2001 From: Luca Consalvi Date: Fri, 22 Nov 2024 16:59:07 +0100 Subject: [PATCH] fix --- build.gradle | 10 ++++++++++ src/main/resources/application.properties | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 001d942..8177205 100644 --- a/build.gradle +++ b/build.gradle @@ -106,4 +106,14 @@ graalvmNative { jvmArgs.add("-Djava.security.properties=${file("${projectDir}/src/main/resources/custom.security").absolutePath}") } } +} + +bootRun { + jvmArgs = [ + '-Djava.security.properties=src/main/resources/custom.security' + ] +} + +tasks.withType(JavaExec) { + jvmArgs += '-Djava.security.properties=src/main/resources/custom.security' } \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 1259fd1..7cbf751 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -11,7 +11,7 @@ management.endpoint.health.probes.enabled=true #repository cosmos.credential.db-name=${DB_NAME:rtp} -cosmos.credential.endpoint=${COSMOS_CONNECTION_STRING} +cosmos.credential.endpoint=${COSMOS_CONNECTION_STRING:""} activation.base-url=${BASE_URL:"http://localhost"} \ No newline at end of file