Skip to content

Commit 877a461

Browse files
[FIXUP] More. Requires non-snapshot version (use mvn versions:set
-DnewVersion=3.1.0)
1 parent b5edd04 commit 877a461

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/maven-build-master-and-publish-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2424

25-
- run: mvn -f symja_android_library -B -U -e -P publish-to-maven-central,exact-target-jdk deploy
25+
- run: mvn -f symja_android_library -B -U -ntp -e -P publish-to-maven-central,exact-target-jdk deploy
2626
# Deployment of all modules is deferred to the last module by nexus-staging-maven-plugin
2727
env:
2828
MAVEN_USERNAME: ${{ secrets.CENTRAL_PORTAL_TOKEN_USERNAME }}

symja_android_library/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@
117117
<njord.version>0.8.3</njord.version>
118118
<njord.releaseUrl>njord:template:release-sca</njord.releaseUrl>
119119
<njord.snapshotUrl>njord:template:snapshot-sca</njord.snapshotUrl>
120+
<!-- See https://github.com/maveniverse/njord/blob/60c02f746f0606aa685e7119f44c0a5b260bd336/publisher/sonatype-cp/src/main/java/eu/maveniverse/maven/njord/publisher/sonatype/cp/SonatypeCentralPortalPublisherConfig.java#L32-->
121+
<njord.publisher.sonatype-cp.publishingType>USER_MANAGED</njord.publisher.sonatype-cp.publishingType>
122+
<!-- See https://github.com/maveniverse/njord/tree/60c02f746f0606aa685e7119f44c0a5b260bd336/publisher/sonatype-cp -->
123+
<njord.publisher.sonatype-cp.releaseRepositoryId>sonatype-central-portal</njord.publisher.sonatype-cp.releaseRepositoryId>
124+
<njord.publisher.sonatype-cp.snapshotRepositoryId>sonatype-central-portal</njord.publisher.sonatype-cp.snapshotRepositoryId>
120125
</properties>
121126
<dependencyManagement>
122127
<dependencies>
@@ -560,6 +565,7 @@
560565
<version>${njord.version}</version>
561566
<configuration>
562567
<publisher>sonatype-cp</publisher>
568+
<details>true</details>
563569
</configuration>
564570
</plugin>
565571
</plugins>
@@ -704,6 +710,9 @@
704710
</profile>
705711
<profile>
706712
<id>publish-to-maven-central</id>
713+
<properties>
714+
<altDeploymentRepository>id::njord:template:release-sca</altDeploymentRepository>
715+
</properties>
707716
<build>
708717
<plugins>
709718
<plugin>

0 commit comments

Comments
 (0)