|
15 | 15 | */ |
16 | 16 |
|
17 | 17 | plugins { |
18 | | - id "io.codearte.nexus-staging" version "0.30.0" |
19 | 18 | id 'java' |
20 | 19 | id 'idea' |
21 | 20 | } |
@@ -268,8 +267,8 @@ task exportClasspath { |
268 | 267 | } |
269 | 268 | } |
270 | 269 |
|
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') |
273 | 272 | ext.nexusFullName = project.findProperty('nexusFullName') |
274 | 273 | ext.nexusEmail = project.findProperty('nexusEmail') |
275 | 274 |
|
@@ -347,8 +346,8 @@ configure(coreProjects) { |
347 | 346 | repositories { |
348 | 347 | maven { |
349 | 348 | // 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/" |
352 | 351 | url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl |
353 | 352 | credentials(PasswordCredentials) { |
354 | 353 | username nexusUsername |
@@ -393,17 +392,6 @@ task upload { |
393 | 392 | dependsOn coreProjects.publish |
394 | 393 | } |
395 | 394 |
|
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 | | -} |
407 | 395 |
|
408 | 396 | if( System.env.BUILD_PACK ) { |
409 | 397 | apply from: 'packing.gradle' |
|
0 commit comments