Skip to content

Commit 68b449b

Browse files
committed
Remove deprecated nexus-staging plugin [ci fast]
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
1 parent 207e84b commit 68b449b

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

build.gradle

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
plugins {
18-
id "io.codearte.nexus-staging" version "0.30.0"
1918
id 'java'
2019
id 'idea'
2120
}
@@ -268,8 +267,8 @@ task exportClasspath {
268267
}
269268
}
270269

271-
ext.nexusUsername = project.findProperty('nexusUsername')
272-
ext.nexusPassword = project.findProperty('nexusPassword')
270+
ext.nexusUsername = project.findProperty('nexusUsername') ?: System.getenv('AWS_ACCESS_KEY_ID')
271+
ext.nexusPassword = project.findProperty('nexusPassword') ?: System.getenv('AWS_SECRET_ACCESS_KEY')
273272
ext.nexusFullName = project.findProperty('nexusFullName')
274273
ext.nexusEmail = project.findProperty('nexusEmail')
275274

@@ -347,8 +346,8 @@ configure(coreProjects) {
347346
repositories {
348347
maven {
349348
// change URLs to point to your repos, e.g. http://my.org/repo
350-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
351-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
349+
def releasesRepoUrl = "s3://maven.seqera.io/releases/"
350+
def snapshotsRepoUrl = "s3://maven.seqera.io/snapshots/"
352351
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
353352
credentials(PasswordCredentials) {
354353
username nexusUsername
@@ -393,17 +392,6 @@ task upload {
393392
dependsOn coreProjects.publish
394393
}
395394

396-
/*
397-
* Configure Nextflow staging plugin -- https://github.com/Codearte/gradle-nexus-staging-plugin
398-
* It adds the tasks
399-
* - closeRepository
400-
* - releaseRepository
401-
* - closeAndReleaseRepository
402-
*/
403-
nexusStaging {
404-
packageGroup = 'io.nextflow'
405-
delayBetweenRetriesInMillis = 10_000
406-
}
407395

408396
if( System.env.BUILD_PACK ) {
409397
apply from: 'packing.gradle'

0 commit comments

Comments
 (0)