Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/setup-java-for-deployment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ runs:
java-version: '17'
distribution: 'temurin'
cache: 'maven' # Cache Maven dependencies between workflow runs
# Properties for deployment to OSSRH:
server-id: ossrh
# Properties for deployment to Maven Central Portal:
server-id: central-portal
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
# Properties for gpg signing:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/maven-build-master-and-publish-snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This workflow will build a Java project with Maven and will publish snapshot versions to the OSSRH Snapshots repository
# This workflow will build a Java project with Maven and will publish snapshot versions to the Central Portal Snapshots repository
# For more information see:
# https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-Apache-Maven
# https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-maven
Expand All @@ -25,10 +25,10 @@ jobs:
with:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}

- run: mvn deploy -Ppublish-to-maven-central -Dgpg.skip=true
- run: mvn deploy -Ppublish-to-maven-central
working-directory: symja_android_library
# Deployment of all modules is deferred to the last module by nexus-staging-maven-plugin
# Deployment of all modules is deferred to the last module by central-publishing-maven-plugin
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.CENTRAL_PORTAL_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_PORTAL_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
8 changes: 4 additions & 4 deletions .github/workflows/maven-perform-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:

- run: mvn release:perform -DlocalCheckout=true
working-directory: symja_android_library
# Deployment of all modules is deferred to the last module by nexus-staging-maven-plugin
# Deployment of all modules is deferred to the last module by central-publishing-maven-plugin
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.CENTRAL_PORTAL_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_PORTAL_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Publish release commits and tag to master
Expand All @@ -86,7 +86,7 @@ jobs:
tag_name: ${{ env.release_tag }}
draft: false
prerelease: false
files: ./symja_android_library/target/checkout/symja_android_library/target/nexus-staging/**/*.jar
files: ./symja_android_library/target/checkout/symja_android_library/target/central-staging/**/*.jar
body: |
We are pleased to announce the release of Symja ${{ env.release_version }}.

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Noteworthy changes are documented in this file.

## [unreleased](https://github.com/axkr/symja_android_library/compare/...) - YYYY-MM-DD
## [Unreleased](https://github.com/axkr/symja_android_library/compare/v3.0.0...HEAD)
- Java 11 required
- Maven modules matheclipse-parser, matheclipse-logging, matheclipse-core are LGPL licensed
- Maven modules matheclipse-gpl and dependents are GPL licensed
Expand Down
36 changes: 18 additions & 18 deletions symja_android_library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@
</issueManagement>
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
<id>central-portal</id>
<url>https://repo.maven.apache.org/maven2</url>
<!-- Only the URL where release artifacts will be available for
download, for upload the Central Portal Upload service is used. -->
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<id>central-portal</id>
<url>https://central.sonatype.com/repository/maven-snapshots</url>
</snapshotRepository>
</distributionManagement>

Expand Down Expand Up @@ -566,12 +568,17 @@
<version>3.6.3</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.10.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<!-- See also: https://central.sonatype.org/publish/publish-portal-maven/#stagingdirectory -->
<autoPublish>false</autoPublish>
<skipPublishing>${deployment.suppress}</skipPublishing>
<deploymentName>MathEclipse-${project.version}</deploymentName>
<publishingServerId>central-portal</publishingServerId>
<waitUntil>validated</waitUntil>
</configuration>
</plugin>
</plugins>
Expand Down Expand Up @@ -730,15 +737,8 @@
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<skipNexusStagingDeployMojo>${deployment.suppress}</skipNexusStagingDeployMojo>
<!-- Documentation:
https://github.com/sonatype/nexus-maven-plugins/blob/master/staging/maven-plugin/README.md-->
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Expand Down
Loading