Skip to content

Commit d8739d2

Browse files
committed
Prepare switch to Central Portal
1 parent b4fc932 commit d8739d2

File tree

26 files changed

+83
-263
lines changed

26 files changed

+83
-263
lines changed

.github/mvn-settings.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
3-
<servers>
4-
<!-- Quarkus-->
5-
<server>
6-
<id>sonatype-nexus-snapshots</id>
7-
<username>${env.SERVER_USERNAME}</username>
8-
<password>${env.SERVER_PASSWORD}</password>
9-
</server>
10-
<!-- END OF Quarkus-->
11-
</servers>
123
<profiles>
134
<profile>
145
<id>google-mirror</id>

.github/release-settings.xml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0"?>
2+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
4+
<pluginGroups>
5+
<pluginGroup>eu.maveniverse.maven.plugins</pluginGroup>
6+
</pluginGroups>
7+
8+
<servers>
9+
<server>
10+
<id>quarkus-publish</id>
11+
<username>${env.SONATYPE_USERNAME}</username>
12+
<password>${env.SONATYPE_PASSWORD}</password>
13+
<configuration>
14+
<njord.publisher>sonatype-cp</njord.publisher>
15+
<njord.releaseUrl>njord:template:release-sca</njord.releaseUrl>
16+
<njord.snapshotUrl>njord:template:snapshot-sca</njord.snapshotUrl>
17+
</configuration>
18+
</server>
19+
</servers>
20+
21+
<!-- Enable Google mirror to avoid hammering Maven Central -->
22+
<profiles>
23+
<profile>
24+
<id>google-mirror</id>
25+
<repositories>
26+
<repository>
27+
<id>google-maven-central</id>
28+
<name>GCS Maven Central mirror EU</name>
29+
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
30+
<releases>
31+
<enabled>true</enabled>
32+
</releases>
33+
<snapshots>
34+
<enabled>false</enabled>
35+
</snapshots>
36+
</repository>
37+
</repositories>
38+
<pluginRepositories>
39+
<pluginRepository>
40+
<id>google-maven-central</id>
41+
<name>GCS Maven Central mirror EU</name>
42+
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
43+
<releases>
44+
<enabled>true</enabled>
45+
</releases>
46+
<snapshots>
47+
<enabled>false</enabled>
48+
</snapshots>
49+
</pluginRepository>
50+
</pluginRepositories>
51+
</profile>
52+
</profiles>
53+
<activeProfiles>
54+
<activeProfile>google-mirror</activeProfile>
55+
</activeProfiles>
56+
</settings>

.github/workflows/deploy-snapshots.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646
- name: Build and Deploy
4747
env:
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_API_TOKEN }}
49-
SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }}
50-
SERVER_PASSWORD: ${{ secrets.SERVER_PASSWORD }}
49+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
50+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
5151
run: |
52-
./mvnw -e -B --settings .github/mvn-settings.xml \
52+
./mvnw -e -B --settings .github/release-settings.xml \
53+
-Dnjord.autoPublish \
5354
-DskipTests -DskipITs -Dno-format -Dinvoker.skip=true \
54-
-DretryFailedDeploymentCount=10 \
5555
-Dno-test-modules \
5656
-Ddevelocity.cache.local.enabled=false \
5757
-Ddevelocity.cache.remote.enabled=false \

.mvn/extensions.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,9 @@
2424
<artifactId>extension</artifactId>
2525
<version>0.4.4</version>
2626
</extension>
27+
<extension>
28+
<groupId>eu.maveniverse.maven.njord</groupId>
29+
<artifactId>extension</artifactId>
30+
<version>0.6.1</version>
31+
</extension>
2732
</extensions>

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ what you would expect to see. Don't forget to indicate your Quarkus, Java, Maven
8383
Sometimes a bug has been fixed in the `main` branch of Quarkus and you want to confirm it is fixed for your own
8484
application. There are two simple options for testing the `main` branch:
8585

86-
* either use the snapshots we publish daily on <https://s01.oss.sonatype.org/content/repositories/snapshots>
86+
* either use the snapshots we publish daily on <https://central.sonatype.com/repository/maven-snapshots>
8787
* or build Quarkus locally
8888

8989
The following is a quick summary aimed at allowing you to quickly test `main`. If you are interested in learning more details, refer to
@@ -93,7 +93,7 @@ the [Build section](#build) and the [Usage section](#usage).
9393

9494
Snapshots are published daily with version `999-SNAPSHOT`, so you will have to wait for a snapshot containing the commits you are interested in.
9595

96-
Then just add <https://s01.oss.sonatype.org/content/repositories/snapshots> as a Maven repository **and** a plugin
96+
Then just add <https://central.sonatype.com/repository/maven-snapshots> as a Maven repository **and** a plugin
9797
repository in your `settings xml` (which should be placed in the `.m2` directory within your home directory):
9898

9999
```xml
@@ -107,7 +107,7 @@ repository in your `settings xml` (which should be placed in the `.m2` directory
107107
<repositories>
108108
<repository>
109109
<id>quarkus-snapshots-repository</id>
110-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
110+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
111111
<releases>
112112
<enabled>false</enabled>
113113
</releases>
@@ -119,7 +119,7 @@ repository in your `settings xml` (which should be placed in the `.m2` directory
119119
<pluginRepositories>
120120
<pluginRepository>
121121
<id>quarkus-snapshots-plugin-repository</id>
122-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
122+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
123123
<releases>
124124
<enabled>false</enabled>
125125
</releases>
@@ -136,7 +136,7 @@ repository in your `settings xml` (which should be placed in the `.m2` directory
136136
</settings>
137137
```
138138

139-
You can check the last publication date here: <https://s01.oss.sonatype.org/content/repositories/snapshots/io/quarkus/>.
139+
You can check the last publication date here: <https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/io/quarkus/quarkus-core/999-SNAPSHOT/>.
140140

141141
### Building main
142142

devtools/gradle/gradle-application-plugin/pom.xml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
<properties>
1919
<artifactFilePrefix>gradle-application-plugin</artifactFilePrefix>
20+
<maven.deploy.skip>true</maven.deploy.skip>
2021
</properties>
2122

2223
<dependencies>
@@ -76,17 +77,4 @@
7677
</dependency>
7778
</dependencies>
7879

79-
<build>
80-
<plugins>
81-
<!-- Do not deploy this project-->
82-
<plugin>
83-
<groupId>org.sonatype.plugins</groupId>
84-
<artifactId>nexus-staging-maven-plugin</artifactId>
85-
<configuration>
86-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
87-
</configuration>
88-
</plugin>
89-
</plugins>
90-
</build>
91-
9280
</project>

devtools/gradle/gradle-extension-plugin/pom.xml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
<properties>
2020
<artifactFilePrefix>gradle-extension-plugin</artifactFilePrefix>
21+
<maven.deploy.skip>true</maven.deploy.skip>
2122
</properties>
2223

2324
<dependencies>
@@ -48,16 +49,4 @@
4849
</dependency>
4950
</dependencies>
5051

51-
<build>
52-
<plugins>
53-
<!-- Do not deploy this project-->
54-
<plugin>
55-
<groupId>org.sonatype.plugins</groupId>
56-
<artifactId>nexus-staging-maven-plugin</artifactId>
57-
<configuration>
58-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
59-
</configuration>
60-
</plugin>
61-
</plugins>
62-
</build>
6352
</project>

extensions/spring-web/resteasy-classic/tests/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,4 @@
5050
</dependency>
5151
</dependencies>
5252

53-
<build>
54-
<plugins>
55-
<plugin>
56-
<groupId>org.sonatype.plugins</groupId>
57-
<artifactId>nexus-staging-maven-plugin</artifactId>
58-
<configuration>
59-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
60-
</configuration>
61-
</plugin>
62-
</plugins>
63-
</build>
64-
6553
</project>

extensions/spring-web/resteasy-reactive/tests/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,4 @@
5454
</dependency>
5555
</dependencies>
5656

57-
<build>
58-
<plugins>
59-
<plugin>
60-
<groupId>org.sonatype.plugins</groupId>
61-
<artifactId>nexus-staging-maven-plugin</artifactId>
62-
<configuration>
63-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
64-
</configuration>
65-
</plugin>
66-
</plugins>
67-
</build>
68-
6957
</project>

independent-projects/arc/pom.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,6 @@
268268
</pluginManagement>
269269
</build>
270270

271-
<distributionManagement>
272-
<snapshotRepository>
273-
<id>sonatype-nexus-snapshots</id>
274-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
275-
</snapshotRepository>
276-
<repository>
277-
<id>sonatype-nexus-releases</id>
278-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
279-
</repository>
280-
</distributionManagement>
281-
282271
<profiles>
283272
<profile>
284273
<id>quick-build</id>

0 commit comments

Comments
 (0)