File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 with :
2121 java-version : ' 11'
2222 distribution : ' temurin'
23+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
2324 gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2425 server-id : central
2526 server-username : MAVEN_USERNAME
4445 with :
4546 java-version : ' 11'
4647 distribution : ' temurin'
48+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
4749 gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
4850 - name : Publish to GitHub Packages
4951 run : mvn -P github --batch-mode deploy
Original file line number Diff line number Diff line change 109109 <profiles >
110110 <profile >
111111 <id >central</id >
112- <distributionManagement >
113- <repository >
114- <id >central</id >
115- <url >https://central.sonatype.com</url >
116- </repository >
117- <snapshotRepository >
118- <id >central</id >
119- <url >https://central.sonatype.com/repository/maven-snapshots/</url >
120- </snapshotRepository >
121- </distributionManagement >
112+ <build >
113+ <plugins >
114+ <plugin >
115+ <groupId >org.sonatype.central</groupId >
116+ <artifactId >central-publishing-maven-plugin</artifactId >
117+ <version >0.4.0</version >
118+ <extensions >true</extensions >
119+ <configuration >
120+ <publishingServerId >central</publishingServerId >
121+ <tokenAuth >true</tokenAuth >
122+ <autoPublish >true</autoPublish >
123+ </configuration >
124+ </plugin >
125+ </plugins >
126+ </build >
122127 </profile >
123128 <profile >
124129 <id >github</id >
You can’t perform that action at this time.
0 commit comments