Skip to content

Commit d56ce25

Browse files
committed
Prepare for maven central repositories
1 parent d4e47df commit d56ce25

File tree

14 files changed

+25
-19
lines changed

14 files changed

+25
-19
lines changed

compiler/tests/robovm/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<repository>
6464
<id>oss-sonatype</id>
6565
<name>oss-sonatype</name>
66-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
66+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
6767
<snapshots>
6868
<enabled>true</enabled>
6969
</snapshots>
@@ -74,7 +74,7 @@
7474
<pluginRepository>
7575
<id>oss-sonatype</id>
7676
<name>oss-sonatype</name>
77-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
77+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
7878
<snapshots>
7979
<enabled>true</enabled>
8080
</snapshots>

plugins/eclipse/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<repository>
4444
<id>sonatype-nexus-snapshots</id>
4545
<name>Sonatype Nexus Snapshots</name>
46-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
46+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
4747
<releases>
4848
<enabled>false</enabled>
4949
</releases>

plugins/gradle/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ buildscript {
1111
repositories {
1212
mavenCentral()
1313
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
14+
maven { url 'https://central.sonatype.com/repository/maven-snapshots' }
1415
}
1516
dependencies {
1617
classpath "com.mobidevelop.robovm:robovm-gradle-plugin:${roboVMVersion}"
@@ -26,6 +27,7 @@ repositories {
2627
mavenLocal()
2728
mavenCentral()
2829
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
30+
maven { url 'https://central.sonatype.com/repository/maven-snapshots' }
2931
}
3032
3133
dependencies {

plugins/gradle/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ repositories {
3030
mavenLocal()
3131
mavenCentral()
3232
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
33+
maven { url 'https://central.sonatype.com/repository/maven-snapshots' }
3334
}
3435

3536
dependencies {
@@ -98,7 +99,7 @@ publishing {
9899
repositories {
99100
maven {
100101
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
101-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
102+
def snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots/"
102103
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
103104
credentials {
104105
username = System.getenv("MAVEN_USERNAME")
@@ -135,4 +136,4 @@ publish.dependsOn('shadowJar')
135136

136137
tasks.withType(AbstractPublishToMaven).configureEach {
137138
dependsOn(tasks.withType(Sign))
138-
}
139+
}

plugins/gradle/src/main/java/org/robovm/gradle/tasks/AbstractRoboVMTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ private List<RemoteRepository> createRemoteRepositories() {
369369
List<RemoteRepository> repositories = new ArrayList<>();
370370
repositories.add(new RemoteRepository("maven-central", "default", "https://repo1.maven.org/maven2/"));
371371
repositories.add(new RemoteRepository("oss.sonatype.org-snapshots", "default",
372-
"https://oss.sonatype.org/content/repositories/snapshots/"));
372+
"https://central.sonatype.com/repository/maven-snapshots/"));
373373

374374
return repositories;
375375
}

plugins/idea/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ repositories {
1515
mavenLocal()
1616
mavenCentral()
1717
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
18+
maven { url 'https://central.sonatype.com/repository/maven-snapshots'}
1819
}
1920

2021
configurations {

plugins/idea/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<repository>
2626
<id>sonatype-nexus-snapshots</id>
2727
<name>Sonatype Nexus Snapshots</name>
28-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
28+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
2929
<releases>
3030
<enabled>false</enabled>
3131
</releases>

plugins/idea/src/main/resources/template_build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ buildscript {
44
mavenLocal()
55
mavenCentral()
66
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
7+
maven { url 'https://central.sonatype.com/repository/maven-snapshots' }
78
}
89
dependencies {
910
classpath "com.mobidevelop.robovm:robovm-gradle-plugin:${roboVMVersion}"
@@ -19,6 +20,7 @@ repositories {
1920
mavenLocal()
2021
mavenCentral()
2122
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
23+
maven { url 'https://central.sonatype.com/repository/maven-snapshots' }
2224
}
2325

2426
robovm {

plugins/idea/src/main/resources/template_pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
<repositories>
5151
<repository>
5252
<id>snapshots-repo</id>
53-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
53+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
5454
<releases><enabled>false</enabled></releases>
5555
<snapshots><enabled>true</enabled></snapshots>
5656
</repository>
5757
</repositories>
58-
</project>
58+
</project>

plugins/resolver/src/main/java/org/robovm/maven/resolver/RoboVMResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public MavenResolvedArtifact resolveArtifact(String artifact) {
4242
return Maven
4343
.configureResolver()
4444
.withRemoteRepo("Sonatype Nexus Snapshots",
45-
"https://oss.sonatype.org/content/repositories/snapshots/", "default")
45+
"https://central.sonatype.com/repository/maven-snapshots/", "default")
4646
.resolve(artifact).withoutTransitivity().asSingleResolvedArtifact();
4747
}
4848
}
@@ -55,7 +55,7 @@ public MavenResolvedArtifact[] resolveArtifacts(String artifact) {
5555
return Maven
5656
.configureResolver()
5757
.withRemoteRepo("Sonatype Nexus Snapshots",
58-
"https://oss.sonatype.org/content/repositories/snapshots/", "default")
58+
"https://central.sonatype.com/repository/maven-snapshots/", "default")
5959
.resolve(artifact).withTransitivity().asResolvedArtifact();
6060
}
6161
}

0 commit comments

Comments
 (0)