Skip to content

Commit

Permalink
maven artifact test
Browse files Browse the repository at this point in the history
  • Loading branch information
see-eff committed Oct 2, 2023
1 parent a9ed0f5 commit f7478a2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
MAVENCENTRALPASSWORD: ${{ secrets.MAVENCENTRALPASSWORD }}
SIGNINGKEY: ${{ secrets.SIGNINGKEY }}
SIGNINGPASSWORD: ${{ secrets.SIGNINGPASSWORD }}
run: ./gradlew publishShadowPublicationToSonatypeRepository
run: ./gradlew build

release-notes:
runs-on: ubuntu-20.04
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
SIGNINGPASSWORD: ${{ secrets.SIGNINGPASSWORD }}

- name: Execute Gradle build
run: ./gradlew publishShadowPublicationToSonatypeRepository
run: ./gradlew publishToSonatype closeAndReleaseStagingRepository
17 changes: 8 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ plugins {
id('net.gradleutil.gradle-conf') version('1.1.18')
id "org.ajoberstar.grgit" version "5.2.0"
id "org.ajoberstar.git-publish" version "3.0.0"
id "de.marcphilipp.nexus-publish" version "0.3.0"
id "io.codearte.nexus-staging" version "0.21.2"
id("io.github.gradle-nexus.publish-plugin") version "2.0.0-rc-1"
id 'idea'
id 'signing'
}
Expand All @@ -21,7 +20,7 @@ group = 'org.cfmlprojects'
description = 'Daevil Gradle build script'
archivesBaseName = 'daevil'

version = '1.0.3'
version = '1.0.4-SNAPSHOT'

sourceCompatibility = 11
targetCompatibility = 11
Expand Down Expand Up @@ -258,11 +257,6 @@ idea {
}
}

nexusStaging {
packageGroup = "org.cfmlprojects"
numberOfRetries = 40 // we've seen extremely long delays in closing repositories
}


publishing {
publications {
Expand Down Expand Up @@ -310,8 +304,13 @@ publishing {
}

nexusPublishing {
packageGroup = "org.cfmlprojects"
connectTimeout = Duration.ofSeconds(60)
clientTimeout = java.time.Duration.ofMinutes(2)
// we've seen extremely long delays in creating repositories
transitionCheckOptions {
maxRetries.set(40)
delayBetween.set(java.time.Duration.ofMillis(3000))
}
repositories {
sonatype {
if (!shouldSkipSigning()) {
Expand Down

0 comments on commit f7478a2

Please sign in to comment.