diff --git a/build.gradle.kts b/build.gradle.kts index fcbf5a1..926e550 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar group = "org.zpa" -version = "1.0.0-SNAPSHOT" +version = "1.0.0" plugins { `maven-publish` diff --git a/source-test/run-sonar-scanner.sh b/source-test/run-sonar-scanner.sh index b650bd8..99ba9e1 100755 --- a/source-test/run-sonar-scanner.sh +++ b/source-test/run-sonar-scanner.sh @@ -2,6 +2,7 @@ set -euo pipefail +ZPA_CLI_VERSION=1.0.0 SONAR_SCANNER_VERSION=4.5.0.2216 TOOLS_PATH=`pwd`/source-test/tools @@ -21,13 +22,13 @@ fi # Extract zpa-cli rm -rf zpa-cli/ -tar xvf ../../build/distributions/zpa-cli-1.0.0-SNAPSHOT.tar +tar xvf ../../build/distributions/zpa-cli-$ZPA_CLI_VERSION.tar # Execute an analysis cd ../utPLSQL/ -$TOOLS_PATH/zpa-cli-1.0.0-SNAPSHOT/bin/zpa-cli --sources . --output-file zpa-issues.json +$TOOLS_PATH/zpa-cli-$ZPA_CLI_VERSION/bin/zpa-cli --sources . --output-file zpa-issues.json sonar-scanner -Dsonar.projectKey=utPLSQL-zpa-demo \ -Dsonar.organization=$SONARCLOUD_ORGANIZATION \ -Dsonar.host.url=https://sonarcloud.io \