File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 git config --global user.email "123456+github-actions[bot]@users.noreply.github.com"
3535
3636 - name : Publish to Apache Maven Central
37- run : mvn clean -Darguments=-DskipTests release:prepare release:perform -DreleaseVersion=${{github.event.inputs.version}} -Prelease
37+ run : |
38+ mvn clean install -DskipTests
39+ mvn versions:set -DnewVersion=${{github.event.inputs.version}}
40+ mvn clean deploy -DskipTests -Prelease
3841 env :
3942 MAVEN_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
4043 MAVEN_CENTRAL_TOKEN : ${{ secrets.SONATYPE_PASSWORD }}
Original file line number Diff line number Diff line change 129129 <id >release</id >
130130 <build >
131131 <plugins >
132+ <plugin >
133+ <groupId >org.apache.maven.plugins</groupId >
134+ <artifactId >maven-source-plugin</artifactId >
135+ <version >3.3.1</version >
136+ <executions >
137+ <execution >
138+ <id >attach-sources</id >
139+ <goals >
140+ <goal >jar-no-fork</goal >
141+ </goals >
142+ </execution >
143+ </executions >
144+ </plugin >
145+
146+ <plugin >
147+ <groupId >org.apache.maven.plugins</groupId >
148+ <artifactId >maven-javadoc-plugin</artifactId >
149+ <version >3.6.3</version >
150+ <executions >
151+ <execution >
152+ <id >attach-javadocs</id >
153+ <goals >
154+ <goal >jar</goal >
155+ </goals >
156+ <configuration >
157+ <doclint >none</doclint >
158+ <failOnError >false</failOnError >
159+ </configuration >
160+ </execution >
161+ </executions >
162+ </plugin >
163+
132164 <plugin >
133165 <groupId >org.apache.maven.plugins</groupId >
134166 <artifactId >maven-gpg-plugin</artifactId >
144176 </plugin >
145177
146178 <plugin >
147- <groupId >org.sonatype.plugins </groupId >
148- <artifactId >nexus-staging -maven-plugin</artifactId >
149- <version >1.6.13 </version >
179+ <groupId >org.sonatype.central </groupId >
180+ <artifactId >central-publishing -maven-plugin</artifactId >
181+ <version >0.9.0 </version >
150182 <extensions >true</extensions >
151183 <configuration >
152- <nexusUrl >${nexus.url} </nexusUrl >
153- <serverId >central</serverId >
154- <autoReleaseAfterClose >true</autoReleaseAfterClose >
184+ <publishingServerId >central</publishingServerId >
185+ <autoPublish >true</autoPublish >
155186 </configuration >
156187 </plugin >
157188 </plugins >
You can’t perform that action at this time.
0 commit comments