Skip to content

Commit

Permalink
SONARGO-82 Split artifactory configuration into artifactory and publi…
Browse files Browse the repository at this point in the history
…shing
  • Loading branch information
petertrr committed Dec 17, 2024
1 parent e670000 commit caa5172
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
11 changes: 4 additions & 7 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,14 @@ on_failure_template: &ON_FAILURE
setup_gradle_cache_template: &SETUP_GRADLE_CACHE
gradle_cache:
folder: .gradle/caches
fingerprint_script: echo "$CIRRUS_BRANCH"
create_gradle_directory_script:
- mkdir -p "${CIRRUS_WORKING_DIR}/.gradle"

cleanup_gradle_cache_script_template: &CLEANUP_GRADLE_CACHE_SCRIPT
cleanup_gradle_script:
- /usr/bin/find "${CIRRUS_WORKING_DIR}/.gradle/caches/" -name "*.lock" -type f -delete
- rm -rf "${CIRRUS_WORKING_DIR}/.gradle/caches/4.10.2/"
- rm -rf "${CIRRUS_WORKING_DIR}/.gradle/caches/journal-1/"
- rm -rf "${CIRRUS_WORKING_DIR}/.gradle/caches/build-cache-1/"
- rm -rf "${GRADLE_USER_HOME}/caches/journal-1/"
- find ${GRADLE_USER_HOME}/caches/ -name "*.lock" -type f -delete || true

build_task:
<<: *LINUX_4_CPU_6G
Expand All @@ -90,9 +89,7 @@ build_task:
build_script:
- git submodule update --init --depth 1 -- build-logic
- source cirrus-env BUILD
- function gradle(){ ./gradlew "$@"; }; export -f gradle
- gradle --version
- source set_gradle_build_version
- source .cirrus/use-gradle-wrapper.sh
- regular_gradle_build_deploy_analyze
<<: *ON_FAILURE
<<: *CLEANUP_GRADLE_CACHE_SCRIPT
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
[submodule "build-logic"]
path = build-logic
url = https://github.com/SonarSource/cloud-native-gradle-modules
branch = SONARGO-82
branch = SONARGO-82-2
9 changes: 2 additions & 7 deletions sonar-go-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import java.util.jar.JarInputStream
plugins {
id("org.sonarsource.cloud-native.java-conventions")
id("org.sonarsource.cloud-native.code-style-conventions")
id("org.sonarsource.cloud-native.artifactory-configuration")
id("org.sonarsource.cloud-native.publishing-configuration")
id("com.github.johnrengelman.shadow") version "7.1.0"
}

Expand Down Expand Up @@ -118,7 +118,7 @@ artifacts {
archives(tasks.shadowJar)
}

artifactoryConfiguration {
publishingConfiguration {
pomName = properties["projectTitle"] as String
scmUrl = "https://github.com/SonarSource/sonar-go"

Expand All @@ -127,11 +127,6 @@ artifactoryConfiguration {
url = "https://sonarsource.com/license/ssal/"
distribution = "repo"
}

buildName = "sonar-go"
repoKeyEnv = "ARTIFACTORY_DEPLOY_REPO"
usernameEnv = "ARTIFACTORY_DEPLOY_USERNAME"
passwordEnv = "ARTIFACTORY_DEPLOY_PASSWORD"
}

publishing {
Expand Down

0 comments on commit caa5172

Please sign in to comment.