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 23
23
TASK=" publishSnapshots"
24
24
fi
25
25
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"
27
27
28
28
./gradlew -version
29
29
./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 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ import java.time.Duration
16
17
17
18
plugins {
18
19
id(" eclipse" )
@@ -24,15 +25,25 @@ val nexusUsername: Provider<String> = providers.gradleProperty("nexusUsername")
24
25
val nexusPassword: Provider <String > = providers.gradleProperty(" nexusPassword" )
25
26
26
27
nexusPublishing {
27
- packageGroup = " org.mongodb"
28
+ packageGroup.set( " org.mongodb" )
28
29
repositories {
29
30
sonatype {
30
- username = nexusUsername
31
- password = nexusPassword
31
+ username.set( nexusUsername)
32
+ password.set( nexusPassword)
32
33
33
34
// central portal URLs
34
35
nexusUrl.set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
35
36
snapshotRepositoryUrl.set(uri(" https://central.sonatype.com/repository/maven-snapshots/" ))
36
37
}
37
38
}
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
+ }
38
49
}
You can’t perform that action at this time.
0 commit comments