diff --git a/buildSrc/src/main/kotlin/com.hedera.block.conventions.gradle.kts b/buildSrc/src/main/kotlin/com.hedera.block.conventions.gradle.kts index 7dad4eb8c..172816343 100644 --- a/buildSrc/src/main/kotlin/com.hedera.block.conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/com.hedera.block.conventions.gradle.kts @@ -93,4 +93,14 @@ tasks.check { dependsOn(tasks.jacocoTestReport) // Check dependency scopes in module-info.java dependsOn(tasks.checkAllModuleInfo) -} \ No newline at end of file +} + +tasks.jacocoTestCoverageVerification { + violationRules { + rule { + limit { + minimum = "0.80".toBigDecimal() // 95% Coverage threshold + } + } + } +} diff --git a/server/docker/update-env.sh b/server/docker/update-env.sh index 6f655f8d5..a840ba656 100755 --- a/server/docker/update-env.sh +++ b/server/docker/update-env.sh @@ -4,7 +4,7 @@ # This script is called by gradle and get the current project version as an input param if [ $# -lt 1 ]; then - echo "USAGE: $0 " + echo "USAGE: $0 " exit 1 fi @@ -13,4 +13,9 @@ echo "REGISTRY_PREFIX=" >> .env # Storage root path, this is temporary until we have a proper .properties file for all configs echo "BLOCKNODE_STORAGE_ROOT_PATH=/app/storage" >> .env +if [ $# -eq 2 ]; then + echo "SERVER_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005'" >> .env +fi + +echo "DEBUG $2" echo "VERSION/TAG UPDATED TO $1"