File tree Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Original file line number Diff line number Diff line change 1919        uses : actions/setup-java@v3 
2020        with :
2121          java-version : " 21" 
22-           distribution : " adopt " 
23-           server-id : ossrh 
22+           distribution : " temurin " 
23+           server-id : central 
2424          server-username : MVN_CENTRAL_USERNAME 
2525          server-password : MVN_CENTRAL_PASSWORD 
2626          gpg-private-key : ${{ secrets.GPG_SECRET_KEY }} 
5454
5555      - name : Step 6 - Publish package 
5656        run : | 
57-           mvn -Dmaven.test.skip=true -P release  -Drevision=${{ steps.gitversion.outputs.semVer }} deploy 
57+           mvn -B --no-transfer-progress - Dmaven.test.skip=true -Drevision=${{ steps.gitversion.outputs.semVer }} deploy 
5858env :
5959          MVN_CENTRAL_USERNAME : ${{ secrets.OSSRH_USERNAME }} 
6060          MVN_CENTRAL_PASSWORD : ${{ secrets.OSSRH_TOKEN }} 
Original file line number Diff line number Diff line change 1616    <properties >
1717        <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
1818        <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
19-         <revision >5.0.0-SNAPSHOT</revision >
2019    </properties >
2120
22-     <distributionManagement >
23-         <snapshotRepository >
24-             <id >ossrh</id >
25-             <url >https://s01.oss.sonatype.org/content/repositories/snapshots</url >
26-         </snapshotRepository >
27-         <repository >
28-             <id >ossrh</id >
29-             <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url >
30-         </repository >
31-     </distributionManagement >
32- 
3321    <scm >
3422        <
connection >scm:git:
[email protected] :aquality-automation/aquality-appium-mobile-java.git</
connection >
3523        <
developerConnection >scm:git:
[email protected] :aquality-automation/aquality-appium-mobile-java.git</
developerConnection >
172160                </executions >
173161            </plugin >
174162            <plugin >
175-                 <groupId >org.sonatype.plugins </groupId >
176-                 <artifactId >nexus-staging -maven-plugin</artifactId >
177-                 <version >1.7 .0</version >
163+                 <groupId >org.sonatype.central </groupId >
164+                 <artifactId >central-publishing -maven-plugin</artifactId >
165+                 <version >0.8 .0</version >
178166                <extensions >true</extensions >
179167                <configuration >
180-                     <serverId >ossrh</ serverId >
181-                     <nexusUrl >https://s01.oss.sonatype.org/</ nexusUrl >
182-                     <autoReleaseAfterClose >true</ autoReleaseAfterClose >
168+                     <publishingServerId >central</ publishingServerId >
169+                     <autoPublish >true</ autoPublish >
170+                     <waitUntil >published</ waitUntil >
183171                </configuration >
184172            </plugin >
185173        </plugins >
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments