Skip to content

Commit 4163f1e

Browse files
committed
Update Snapshot download repository
1 parent 67330a0 commit 4163f1e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/build_snapshot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ jobs:
6868

6969
- name: Update and publish Wiki SNAPSHOT link
7070
run: |
71-
xmlResult=$(wget -qO- https://oss.sonatype.org/content/repositories/snapshots/com/fazecast/jSerialComm/${{ steps.gitversion.outputs.version }}-SNAPSHOT/maven-metadata.xml)
71+
xmlResult=$(wget -qO- https://central.sonatype.com/repository/maven-snapshots/com/fazecast/jSerialComm/${{ steps.gitversion.outputs.version }}-SNAPSHOT/maven-metadata.xml)
7272
snapshot=$(echo $xmlResult | grep -o "<snapshot>.*</snapshot>")
7373
timestamp=$(echo $snapshot | grep -o "<timestamp>.*</timestamp>" | grep -o "[0-9][^<]*")
7474
buildNumber=$(echo $snapshot | grep -o "<buildNumber>.*</buildNumber>" | grep -o "[0-9][^<]*")
7575
cd markdown
76-
sed -i "s@\*\*Snapshot Version\*\*:.*@\*\*Snapshot Version\*\*: \*${{ steps.gitversion.outputs.version }}-SNAPSHOT\* ([[Download JAR file here|https://oss.sonatype.org/content/repositories/snapshots/com/fazecast/jSerialComm/${{ steps.gitversion.outputs.version }}-SNAPSHOT/jSerialComm-${{ steps.gitversion.outputs.version }}-$timestamp-$buildNumber.jar]])@" Home.md
76+
sed -i "s@\*\*Snapshot Version\*\*:.*@\*\*Snapshot Version\*\*: \*${{ steps.gitversion.outputs.version }}-SNAPSHOT\* ([[Download JAR file here|https://central.sonatype.com/repository/maven-snapshots/com/fazecast/jSerialComm/${{ steps.gitversion.outputs.version }}-SNAPSHOT/jSerialComm-${{ steps.gitversion.outputs.version }}-$timestamp-$buildNumber.jar]])@" Home.md
7777
git config --local user.email "action@github.com"
7878
git config --local user.name "GitHub Action"
7979
git add .

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ jreleaser {
187187
url = 'https://central.sonatype.com/api/v1/publisher'
188188
stagingRepository('build/staging-deploy')
189189
connectTimeout = 60
190-
readTimeout = 600
191-
retryDelay = 600
190+
readTimeout = 120
191+
retryDelay = 120
192192
}
193193
}
194194
nexus2 {
@@ -201,8 +201,8 @@ jreleaser {
201201
releaseRepository = true
202202
stagingRepository('build/staging-deploy')
203203
connectTimeout = 60
204-
readTimeout = 600
205-
transitionDelay = 600
204+
readTimeout = 120
205+
transitionDelay = 120
206206
}
207207
}
208208
}

0 commit comments

Comments
 (0)