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
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,23 @@ jobs:
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- name: Set up Maven 3.9.9
if: matrix.os == 'ubuntu-latest'
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: '3.9.9'
- name: Set up GNUPG private key
if: matrix.os == 'ubuntu-latest'
run: 'echo "$GPG_PRIVATE_KEY" > key.gpg && gpg --import key.gpg && rm key.gpg'
shell: bash
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Set up maven credentials
if: matrix.os == 'ubuntu-latest'
run: 'mkdir -p ~/.m2 && echo "$MVN_SETTINGS_XML" > ~/.m2/settings.xml'
shell: bash
env:
MVN_SETTINGS_XML: ${{ secrets.MVN_SETTINGS_XML_2026 }}
- name: Get current date
id: date
run: echo "date=$(date +'%Y%m%d%H%M')" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -99,6 +116,16 @@ jobs:
event-type: tlaplus-dispatch
client-payload: '{"source": "CommunityModules"}'

##
## Upload dist/CommunityModules.jar to the Central Portal snapshot repository.
## Same mechanism as tla2tools.jar.
##
- name: Upload to Maven Central
if: matrix.os == 'ubuntu-latest'
continue-on-error: true
run: |
mvn gpg:sign-and-deploy-file -Durl=https://central.sonatype.com/repository/maven-snapshots/ -DrepositoryId=ossrh -DpomFile=ossrh.xml -Dfile=dist/CommunityModules.jar -f ossrh.xml

tlaps:
name: Verify TLAPS proofs
runs-on: ${{ matrix.os }}
Expand Down
114 changes: 114 additions & 0 deletions ossrh.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>9</version>
<relativePath>../do-not-reference-our-parent-pom</relativePath>
</parent>

<!-- Deploy POM for the Ant-built dist/CommunityModules.jar. The fat
CommunityModules-deps.jar stays a GitHub release asset. -->

<groupId>org.lamport</groupId>
<artifactId>communitymodules</artifactId>
<name>TLA+ Community Modules</name>
<version>1.8.0-SNAPSHOT</version>
<description>TLA+ Community Modules and their TLC Java overrides.</description>
<packaging>jar</packaging>

<organization>
<name>TLA+ Foundation</name>
<url>https://foundation.tlapl.us/</url>
</organization>

<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
</license>
</licenses>

<issueManagement>
<system>GitHub</system>
<url>https://github.com/tlaplus/CommunityModules/issues</url>
</issueManagement>

<scm>
<connection>scm:git:https://github.com/tlaplus/CommunityModules</connection>
<developerConnection>scm:git:https://github.com/tlaplus/CommunityModules</developerConnection>
<tag>HEAD</tag>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://central.sonatype.com/repository/maven-releases/</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.lamport</groupId>
<artifactId>tla2tools</artifactId>
<version>1.8.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.6.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>org.jgrapht</groupId>
<artifactId>jgrapht-core</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>com.github.tomnelson</groupId>
<artifactId>jungrapht-layout</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.7.30</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading