Skip to content

Commit eddf6cc

Browse files
committed
Switch to central.sonatype.com for publishing (#709)
1 parent f3b37ff commit eddf6cc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ plugins {
2121
//id 'org.ec4j.editorconfig' version '0.0.3'
2222
id 'org.sonarqube' version '2.6.2'
2323
id 'org.xtext.builder' version '4.0.0'
24-
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
24+
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
2525
}
2626

2727
subprojects {
@@ -305,8 +305,12 @@ sonarqube {
305305

306306
nexusPublishing {
307307
repositories {
308-
sonatype ()
309-
}
308+
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
309+
sonatype {
310+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
311+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
312+
}
313+
}
310314
}
311315

312316
class ScmInfo {

0 commit comments

Comments
 (0)