From 3234548175f5ae58b034e9a35b15b2a167f45e84 Mon Sep 17 00:00:00 2001 From: marc-adaptive Date: Tue, 18 Feb 2025 20:56:00 -0500 Subject: [PATCH] Update publish.sh workflow --- build.gradle | 10 ++++++++-- gradle.properties | 3 +++ publish.sh | 3 --- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index e255566246..62cb8ef628 100644 --- a/build.gradle +++ b/build.gradle @@ -82,8 +82,6 @@ def projectPom = { ext { group = artioGroup isReleaseVersion = !version.endsWith("SNAPSHOT") - repoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' - snapshotUrl = 'https://oss.sonatype.org/content/repositories/snapshots/' iLink3Enabled = Boolean.getBoolean("fix.core.iLink3Enabled") if (!project.hasProperty('repoUsername')) { @@ -94,6 +92,14 @@ ext { repoPassword = '' } + if (!project.hasProperty('repoUrl')) { + repoUrl = '' + } + + if (!project.hasProperty('snapshotUrl')) { + snapshotUrl = '' + } + if (!project.hasProperty('signingKey')) { signingKey = null } diff --git a/gradle.properties b/gradle.properties index 139b675798..962551a653 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,3 +11,6 @@ org.gradle.warning.mode=all version=0.166-SNAPSHOT systemProp.org.gradle.internal.publish.checksums.insecure=true + +repoUrl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ +snapshotUrl=https://oss.sonatype.org/content/repositories/snapshots/ \ No newline at end of file diff --git a/publish.sh b/publish.sh index d14a5efd77..921e886b73 100755 --- a/publish.sh +++ b/publish.sh @@ -7,9 +7,6 @@ TAG_NAME="$1" echo "Checking out requested tag: $TAG_NAME" git checkout "$TAG_NAME" -echo "Checking correct Java version (1.8) in use" -java -version 2>&1 | grep '1.8' - echo "Building binary to upload" ./gradlew