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
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Package to GitHub Packages

on:
release:
types: [published]
workflow_dispatch: # Allows manual triggering from the Actions tab

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # Needed to publish packages

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true # Ensure submodules are checked out if needed

- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: "8"
distribution: "zulu"
cache: maven

- name: Configure Maven Settings for GitHub Packages
uses: actions/setup-java@v4
with:
java-version: "8" # Repeat setup to ensure settings are configured
distribution: "zulu"
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Publish package
run: mvn --batch-mode deploy -DskipTests=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Provided by Actions, used for authentication
2 changes: 0 additions & 2 deletions parsec-client-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<artifactId>parsec-client-java</artifactId>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
Expand Down
5 changes: 1 addition & 4 deletions parsec-interface-java/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -12,8 +11,6 @@
<artifactId>parsec-interface-java</artifactId>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
Expand Down
2 changes: 0 additions & 2 deletions parsec-jca-java-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
<artifactId>parsec-jca-java-test</artifactId>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import lombok.Builder;
import lombok.Value;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;

import java.security.PublicKey;

Expand All @@ -15,13 +14,14 @@ static ParsecPublicKey.ParsecPublicKeyImpl.ParsecPublicKeyImplBuilder builder()

@Value
@Builder
class ParsecPublicKeyImpl implements ParsecPublicKey{
class ParsecPublicKeyImpl implements ParsecPublicKey {
String parsecName;
String algorithm;
String format;

@Override
public byte[] getEncoded() {
throw new NotImplementedException();
throw new UnsupportedOperationException("Not implemented");
}
}
}
2 changes: 0 additions & 2 deletions parsec-protobuf-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
<protoc.version>3.18.0</protoc.version>
<protobuf.version>3.19.6</protobuf.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
Expand Down
2 changes: 0 additions & 2 deletions parsec-testcontainers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<containers.skip>false</containers.skip>
</properties>
<build>
Expand Down
44 changes: 15 additions & 29 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@
<groupId>org.parallaxsecond</groupId>
<artifactId>parsec-java</artifactId>
<version>1.0.0-SNAPSHOT</version>
<distributionManagement>
<repository>
<id>github</id> <!-- MUST match the server-id in the workflow -->
<name>GitHub Apache Maven Packages</name>
<url>https://maven.pkg.github.com/parallaxsecond/parsec-client-java</url> <!-- Replace OWNER/REPOSITORY -->
</repository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<logback.version>1.3.15</logback.version>
<lombok.version>1.18.36</lombok.version>
<junit.jupiter.version>5.12.1</junit.jupiter.version>
<slf4j.version>2.0.16</slf4j.version>
<jpms.args></jpms.args>
<!-- Since compiler plugin version 3.13.0 you can use the release property also on JDK 8.
The compiler plugin will convert it to source and target automatically. -->
<maven.compiler.release>8</maven.compiler.release>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -55,33 +63,6 @@
<module>parsec-jca-java-test</module>
</modules>

<profiles>
<profile>
<id>java1.8</id>
<activation>
<activeByDefault>false</activeByDefault>
<jdk>1.8</jdk>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -110,6 +91,11 @@
<flattenMode>clean</flattenMode>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.0</version>
</plugin>
</plugins>
</build>
</project>