Skip to content

Commit 6e299a0

Browse files
committed
Deploy: add distributionManagement + fix release
1 parent 083b6de commit 6e299a0

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
GITHUB_TOKEN: ${{ github.token }}
5656
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
5757
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
58-
MAVEN_OPTS: -Dhttps.protocols=TLSv1.2 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true -Dmaven.wagon.http.retryHandler.count=10
58+
MAVEN_OPTS: -Xmx4g -Dhttps.protocols=TLSv1.2 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true -Dmaven.wagon.http.retryHandler.count=10
5959
if: ${{ env.MAVEN_USERNAME!='' && env.MAVEN_PASSWORD!='' }}
6060
run: mvn --batch-mode -Darguments="-Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}" -DsignTag=true -DtagNameFormat="${{ github.event.inputs.releaseVersion }}" -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} release:prepare release:perform --file pom.xml
6161
- name: Release on GitHub

pom.xml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,19 @@
265265
</executions>
266266
</plugin>
267267
<plugin>
268-
<groupId>org.sonatype.central</groupId>
269-
<artifactId>central-publishing-maven-plugin</artifactId>
270-
<version>0.8.0</version>
271-
<extensions>true</extensions>
272-
<configuration>
273-
<publishingServerId>ossrh</publishingServerId>
274-
<autoPublish>true</autoPublish>
275-
<waitMaxTime>5400</waitMaxTime>
276-
</configuration>
268+
<groupId>org.sonatype.central</groupId>
269+
<artifactId>central-publishing-maven-plugin</artifactId>
270+
<version>0.8.0</version>
271+
<extensions>true</extensions>
272+
<configuration>
273+
<publishingServerId>ossrh</publishingServerId>
274+
<autoPublish>true</autoPublish>
275+
<waitMaxTime>5400</waitMaxTime>
276+
<excludeArtifacts>
277+
<!--very large for central may cause broken pipe error-->
278+
<excludeArtifact>openam-distribution-kit</excludeArtifact>
279+
</excludeArtifacts>
280+
</configuration>
277281
</plugin>
278282
</plugins>
279283
</build>
@@ -402,6 +406,18 @@
402406
</snapshots>
403407
</pluginRepository>
404408
</pluginRepositories>
409+
<distributionManagement>
410+
<repository>
411+
<id>ossrh</id>
412+
<name>Central Portal Staging</name>
413+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2</url>
414+
</repository>
415+
<snapshotRepository>
416+
<id>ossrh</id>
417+
<name>Central Portal Snapshots</name>
418+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
419+
</snapshotRepository>
420+
</distributionManagement>
405421
<!-- Source Control -->
406422
<scm>
407423
<connection>scm:git:https://github.com/OpenIdentityPlatform/OpenAM.git</connection>

0 commit comments

Comments
 (0)