Skip to content

Commit 50722ca

Browse files
update to central portal
1 parent 1c80f8d commit 50722ca

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ env:
55
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
66
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
77
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
8+
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
9+
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
810

911
on:
1012
release:
@@ -22,9 +24,9 @@ jobs:
2224
uses: actions/setup-java@v1
2325
with:
2426
java-version: 1.8
25-
server-id: ossrh
26-
server-username: MAVEN_USERNAME
27-
server-password: MAVEN_PASSWORD
27+
server-id: central
28+
server-username: MAVEN_CENTRAL_USERNAME
29+
server-password: MAVEN_CENTRAL_PASSWORD
2830
gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }}
2931
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3032

auto-generated-sdk/pom.xml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@
55
<artifactId>engines-sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>engines-sdk</name>
8-
<version>6.2.0</version>
8+
<version>6.2.1-SNAPSHOT</version>
99
<url>https://github.com/factset/analyticsapi-engines-java-sdk</url>
1010
<description>SDK for FactSet Analytics Engines API</description>
1111
<distributionManagement>
12-
<repository>
13-
<id>ossrh</id>
14-
<name>Central Repository OSSRH</name>
15-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
16-
</repository>
12+
<snapshotRepository>
13+
<name>Central Portal Snapshots</name>
14+
<id>central-portal-snapshots</id>
15+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
16+
<releases>
17+
<enabled>false</enabled>
18+
</releases>
19+
<snapshots>
20+
<enabled>true</enabled>
21+
</snapshots>
22+
</snapshotRepository>
1723
</distributionManagement>
1824
<scm>
1925
<connection>scm:git:git://github.com/factset/analyticsapi-engines-java-sdk.git</connection>
@@ -91,6 +97,15 @@
9197
</execution>
9298
</executions>
9399
</plugin>
100+
<plugin>
101+
<groupId>org.sonatype.central</groupId>
102+
<artifactId>central-publishing-maven-plugin</artifactId>
103+
<version>0.8.0</version>
104+
<extensions>true</extensions>
105+
<configuration>
106+
<publishingServerId>central</publishingServerId>
107+
</configuration>
108+
</plugin>
94109

95110
<!-- attach test jar -->
96111
<plugin>

0 commit comments

Comments
 (0)