File tree Expand file tree Collapse file tree 4 files changed +20
-36
lines changed Expand file tree Collapse file tree 4 files changed +20
-36
lines changed Original file line number Diff line number Diff line change 54
54
java-version : 8
55
55
- name : Publish snapshot artifacts
56
56
env :
57
- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
58
- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
57
+ MAVEN_CENTRAL_USERNAME : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
58
+ MAVEN_CENTRAL_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
59
59
run : ./mvnw deploy --batch-mode --errors --activate-profiles generate-docs --settings .github/workflows/settings.xml
Original file line number Diff line number Diff line change 1
- <settings >
2
- <mirrors xmlns =" http://maven.apache.org/SETTINGS/1.1.0" >
3
- <mirror >
4
- <mirrorOf >central</mirrorOf >
5
- <name >GCS Maven Central mirror</name >
6
- <url >https://maven-central.storage-download.googleapis.com/maven2/</url >
7
- <id >google-maven-central</id >
8
- </mirror >
9
- </mirrors >
1
+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd" >
10
3
<servers >
11
4
<server >
12
- <id >junit-snapshot-repo</id >
13
- <username >${env.OSSRH_USERNAME}</username >
14
- <password >${env.OSSRH_PASSWORD}</password >
15
- </server >
16
- <server >
17
- <id >junit-releases-repo</id >
18
- <username >${env.OSSRH_USERNAME}</username >
19
- <password >${env.OSSRH_PASSWORD}</password >
5
+ <id >central-portal</id >
6
+ <username >${env.MAVEN_CENTRAL_USERNAME}</username >
7
+ <password >${env.MAVEN_CENTRAL_PASSWORD}</password >
20
8
</server >
21
9
</servers >
22
10
</settings >
Original file line number Diff line number Diff line change @@ -70,12 +70,7 @@ Steps to build junit:
70
70
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
71
71
<servers>
72
72
<server>
73
- <id>junit-snapshot-repo</id>
74
- <username><!--a username registered with Sonatype for deployment--></username>
75
- <password><!--corresponding password--></password>
76
- </server>
77
- <server>
78
- <id>junit-releases-repo</id>
73
+ <id>central-portal</id>
79
74
<username><!--a username registered with Sonatype for deployment--></username>
80
75
<password><!--corresponding password--></password>
81
76
</server>
Original file line number Diff line number Diff line change 76
76
</ciManagement >
77
77
<distributionManagement >
78
78
<downloadUrl >https://github.com/junit-team/junit4/wiki/Download-and-Install</downloadUrl >
79
- <snapshotRepository >
80
- <id >junit-snapshot-repo</id >
81
- <name >Nexus Snapshot Repository</name >
82
- <url >https://oss.sonatype.org/content/repositories/snapshots/</url >
83
- </snapshotRepository >
84
- <repository >
85
- <id >junit-releases-repo</id >
86
- <name >Nexus Release Repository</name >
87
- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
88
- </repository >
89
79
<site >
90
80
<id >junit.github.io</id >
91
81
<url >gitsite:git@github.com/junit-team/junit4.git</url >
101
91
<javadocPluginVersion >2.10.3</javadocPluginVersion >
102
92
<project .build.sourceEncoding>ISO-8859-1</project .build.sourceEncoding>
103
93
<arguments />
104
- <gpg .keyname>67893CC4 </gpg .keyname>
94
+ <gpg .keyname>FF6E2C001948C5F2F38B0CC385911F425EC61B51 </gpg .keyname>
105
95
</properties >
106
96
107
97
<dependencies >
379
369
<artifactId >maven-resources-plugin</artifactId >
380
370
<version >2.7</version >
381
371
</plugin >
372
+ <plugin >
373
+ <groupId >org.sonatype.central</groupId >
374
+ <artifactId >central-publishing-maven-plugin</artifactId >
375
+ <version >0.7.0</version >
376
+ <extensions >true</extensions >
377
+ <configuration >
378
+ <publishingServerId >central-portal</publishingServerId >
379
+ <waitUntil >validated</waitUntil >
380
+ <deploymentName >junit-${project.version} </deploymentName >
381
+ </configuration >
382
+ </plugin >
382
383
</plugins >
383
384
</build >
384
385
You can’t perform that action at this time.
0 commit comments