Skip to content

Commit

Permalink
Update publish.sh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-adaptive committed Feb 19, 2025
1 parent f4a4507 commit 3234548
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand All @@ -94,6 +92,14 @@ ext {
repoPassword = ''
}

if (!project.hasProperty('repoUrl')) {
repoUrl = ''
}

if (!project.hasProperty('snapshotUrl')) {
snapshotUrl = ''
}

if (!project.hasProperty('signingKey')) {
signingKey = null
}
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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/
3 changes: 0 additions & 3 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3234548

Please # to comment.