Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: updating publish to use closeAndReleaseSonatypeStagingRepository #36

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/publish/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ else
}
else
echo "RELEASE"
${WORKSPACE_PATH}/gradlew publishToSonatype closeAndReleaseRepository -p ${WORKSPACE_PATH} -Psigning.keyId="${SIGNING_KEY_ID}" -Psigning.password="${SIGNING_KEY_PASSPHRASE}" -Psigning.secretKeyRingFile="${SIGNING_SECRET_KEY_RING_FILE}" -PsonatypeUsername="${SONATYPE_USER_NAME}" -PsonatypePassword="${SONATYPE_PASSWORD}" || {
${WORKSPACE_PATH}/gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -p ${WORKSPACE_PATH} -Psigning.keyId="${SIGNING_KEY_ID}" -Psigning.password="${SIGNING_KEY_PASSPHRASE}" -Psigning.secretKeyRingFile="${SIGNING_SECRET_KEY_RING_FILE}" -PsonatypeUsername="${SONATYPE_USER_NAME}" -PsonatypePassword="${SONATYPE_PASSWORD}" || {
echo "Gradle publish/release failed" >&2
exit 1
}
Expand Down
6 changes: 0 additions & 6 deletions lib/sdk/server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
id "maven-publish"
id "io.github.gradle-nexus.publish-plugin" version "1.3.0" apply false
id "io.codearte.nexus-staging" version "0.21.2"
id "org.ajoberstar.git-publish" version "2.1.3"
id "idea"
}
Expand Down Expand Up @@ -546,11 +545,6 @@ idea {
}
}

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

def pomConfig = {
name 'LaunchDarkly SDK for Java'
packaging 'jar'
Expand Down
5 changes: 0 additions & 5 deletions lib/shared/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ publishing {
}
}

nexusStaging {
packageGroup = ProjectValues.groupId
numberOfRetries = 40 // we've seen extremely long delays in closing repositories
}

nexusPublishing {
clientTimeout.set(Duration.ofMinutes(2)) // we've seen extremely long delays in creating repositories
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ object Versions {

object PluginVersions {
const val nexusPublish = "1.3.0"
const val nexusStaging = "0.30.0"
}

object Libs {
Expand Down Expand Up @@ -61,7 +60,6 @@ object Libs {
)

val javaExtGradlePlugins = mapOf(
"io.github.gradle-nexus.publish-plugin" to PluginVersions.nexusPublish,
"io.codearte.nexus-staging" to PluginVersions.nexusStaging
"io.github.gradle-nexus.publish-plugin" to PluginVersions.nexusPublish
)
}
5 changes: 0 additions & 5 deletions lib/shared/internal/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ publishing {
}
}

nexusStaging {
packageGroup = ProjectValues.groupId
numberOfRetries = 40 // we've seen extremely long delays in closing repositories
}

nexusPublishing {
clientTimeout.set(Duration.ofMinutes(2)) // we've seen extremely long delays in creating repositories
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ object Versions {

object PluginVersions {
const val nexusPublish = "1.3.0"
const val nexusStaging = "0.30.0"
}

object Libs {
Expand Down Expand Up @@ -52,7 +51,6 @@ object Libs {
)

val javaExtGradlePlugins = mapOf(
"io.github.gradle-nexus.publish-plugin" to PluginVersions.nexusPublish,
"io.codearte.nexus-staging" to PluginVersions.nexusStaging
"io.github.gradle-nexus.publish-plugin" to PluginVersions.nexusPublish
)
}
Loading