File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 2323 TASK=" publishSnapshots"
2424fi
2525
26- SYSTEM_PROPERTIES=" -Dorg.gradle.internal.publish.checksums.insecure=true -Dorg.gradle.internal.http.connectionTimeout=120000 -Dorg.gradle.internal.http.socketTimeout=120000 "
26+ SYSTEM_PROPERTIES=" -Dorg.gradle.internal.publish.checksums.insecure=true"
2727
2828./gradlew -version
2929./gradlew ${SYSTEM_PROPERTIES} --stacktrace --info ${TASK} # Scala 2.13 is published as result of this gradle execution.
Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16+ import java.time.Duration
1617
1718plugins {
1819 id(" eclipse" )
@@ -24,15 +25,25 @@ val nexusUsername: Provider<String> = providers.gradleProperty("nexusUsername")
2425val nexusPassword: Provider <String > = providers.gradleProperty(" nexusPassword" )
2526
2627nexusPublishing {
27- packageGroup = " org.mongodb"
28+ packageGroup.set( " org.mongodb" )
2829 repositories {
2930 sonatype {
30- username = nexusUsername
31- password = nexusPassword
31+ username.set( nexusUsername)
32+ password.set( nexusPassword)
3233
3334 // central portal URLs
3435 nexusUrl.set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
3536 snapshotRepositoryUrl.set(uri(" https://central.sonatype.com/repository/maven-snapshots/" ))
3637 }
3738 }
39+
40+ connectTimeout.set(Duration .ofMinutes(5 ))
41+ clientTimeout.set(Duration .ofMinutes(30 ))
42+
43+ transitionCheckOptions {
44+ // We have many artifacts and Maven Central can take a long time on its compliance checks.
45+ // Set the timeout for waiting for the repository to close to a comfortable 50 minutes.
46+ maxRetries.set(300 )
47+ delayBetween.set(Duration .ofSeconds(10 ))
48+ }
3849}
You can’t perform that action at this time.
0 commit comments