File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,15 +23,12 @@ jobs:
2323 java-version : ${{ matrix.java }}
2424 cache : ' maven'
2525 # these values cause the plugin to set up the Maven settings.xml file
26- server-id : ossrh # Value of the distributionManagement/repository/id field of the pom.xml
27- server-username : SONATYPE_USERNAME # env variable for username in deploy
28- server-password : SONATYPE_PASSWORD # env variable for token in deploy
26+ server-id : central
27+ server-username : SONATYPE_USERNAME
28+ server-password : SONATYPE_PASSWORD
2929 - name : Get version
3030 run : echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
3131 - name : Build
32- env :
33- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
34- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
3532 run : mvn -V -B --no-transfer-progress -P jacoco checkstyle:check spotbugs:check verify
3633 - name : Deploy SNAPSHOT
3734 # must run directly after 'Build'
Original file line number Diff line number Diff line change @@ -51,14 +51,6 @@ GDSC SMLM ImageJ Plugins - Single molecule localisation microscopy (SMLM)
5151 <url >https://travis-ci.com/aherbert/gdsc-core</url >
5252 </ciManagement >
5353 <distributionManagement >
54- <snapshotRepository >
55- <id >ossrh</id >
56- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
57- </snapshotRepository >
58- <repository >
59- <id >ossrh</id >
60- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
61- </repository >
6254 <site >
6355 <id >${project.artifactId} -site</id >
6456 <url >file://${parent.dir} /mvn-repo</url >
@@ -72,8 +64,9 @@ GDSC SMLM ImageJ Plugins - Single molecule localisation microscopy (SMLM)
7264 </mailingLists >
7365 <repositories >
7466 <repository >
75- <id >snapshots-repo</id >
76- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
67+ <name >Central Portal Snapshots</name >
68+ <id >central-portal-snapshots</id >
69+ <url >https://central.sonatype.com/repository/maven-snapshots/</url >
7770 <releases >
7871 <enabled >false</enabled >
7972 </releases >
You can’t perform that action at this time.
0 commit comments