8000 Update publish to close and release artifacts to sonatype by rozza · Pull Request #139 · mongodb/mongo-spark · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update publish to close and release artifacts to sonatype #139

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

Merged
merged 1 commit into from
Jun 30, 2025
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 8000 view
Diff view
4 changes: 2 additions & 2 deletions .evergreen/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ export ORG_GRADLE_PROJECT_signingKey="${SIGNING_KEY}"
export ORG_GRADLE_PROJECT_signingPassword=${SIGNING_PASSWORD}

if [ "$RELEASE" == "true" ]; then
TASK="publishArchives"
TASK="publishArchives closeAndReleaseSonatypeStagingRepository"
else
TASK="publishSnapshots"
fi

SYSTEM_PROPERTIES="-Dorg.gradle.internal.publish.checksums.insecure=true -Dorg.gradle.internal.http.connectionTimeout=120000 -Dorg.gradle.internal.http.socketTimeout=120000"
SYSTEM_PROPERTIES="-Dorg.gradle.internal.publish.checksums.insecure=true"

./gradlew -version
./gradlew ${SYSTEM_PROPERTIES} --stacktrace --info ${TASK} -DscalaVersion=2.12 -DsparkVersion=3.1.2
Expand Down
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import java.io.ByteArrayOutputStream
import java.time.Duration

buildscript {
repositories {
Expand Down Expand Up @@ -334,6 +335,16 @@ nexusPublishing {
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
}
}

connectTimeout.set(Duration.ofMinutes(5))
clientTimeout.set(Duration.ofMinutes(30))

transitionCheckOptions {
// Maven Central can take a long time on its compliance checks.
// Set the timeout for waiting for the repository to close to a comfortable 50 minutes.
maxRetries.set(300)
delayBetween.set(Duration.ofSeconds(10))
}
}

signing {
Expand Down
0