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}
0 commit comments