diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..c72c128 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 diff --git a/parsec-client-java/pom.xml b/parsec-client-java/pom.xml index c84960e..ee5d481 100644 --- a/parsec-client-java/pom.xml +++ b/parsec-client-java/pom.xml @@ -11,8 +11,6 @@ parsec-client-java UTF-8 - 1.8 - 1.8 diff --git a/parsec-interface-java/pom.xml b/parsec-interface-java/pom.xml index d696f57..3672bba 100644 --- a/parsec-interface-java/pom.xml +++ b/parsec-interface-java/pom.xml @@ -1,7 +1,6 @@ + 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"> 4.0.0 @@ -12,8 +11,6 @@ parsec-interface-java UTF-8 - 1.8 - 1.8 diff --git a/parsec-jca-java-test/pom.xml b/parsec-jca-java-test/pom.xml index 30d5c5a..d7de4ec 100644 --- a/parsec-jca-java-test/pom.xml +++ b/parsec-jca-java-test/pom.xml @@ -10,8 +10,6 @@ parsec-jca-java-test UTF-8 - 1.8 - 1.8 diff --git a/parsec-jca-java/src/main/java/org/parallaxsecond/parsec/jce/provider/ParsecPublicKey.java b/parsec-jca-java/src/main/java/org/parallaxsecond/parsec/jce/provider/ParsecPublicKey.java index 23c61c9..d5a2262 100644 --- a/parsec-jca-java/src/main/java/org/parallaxsecond/parsec/jce/provider/ParsecPublicKey.java +++ b/parsec-jca-java/src/main/java/org/parallaxsecond/parsec/jce/provider/ParsecPublicKey.java @@ -2,7 +2,6 @@ import lombok.Builder; import lombok.Value; -import sun.reflect.generics.reflectiveObjects.NotImplementedException; import java.security.PublicKey; @@ -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"); } } } diff --git a/parsec-protobuf-java/pom.xml b/parsec-protobuf-java/pom.xml index ff1592a..789c787 100644 --- a/parsec-protobuf-java/pom.xml +++ b/parsec-protobuf-java/pom.xml @@ -14,8 +14,6 @@ 3.18.0 3.19.6 UTF-8 - 1.8 - 1.8 diff --git a/parsec-testcontainers/pom.xml b/parsec-testcontainers/pom.xml index d8983b8..4d960ed 100644 --- a/parsec-testcontainers/pom.xml +++ b/parsec-testcontainers/pom.xml @@ -28,8 +28,6 @@ UTF-8 - 1.8 - 1.8 false diff --git a/pom.xml b/pom.xml index 1f5af09..3193835 100644 --- a/pom.xml +++ b/pom.xml @@ -6,15 +6,23 @@ org.parallaxsecond parsec-java 1.0.0-SNAPSHOT + + + github + GitHub Apache Maven Packages + https://maven.pkg.github.com/parallaxsecond/parsec-client-java + + UTF-8 - 1.8 - 1.8 1.3.15 1.18.36 5.12.1 2.0.16 + + 8 @@ -55,33 +63,6 @@ parsec-jca-java-test - - - java1.8 - - false - 1.8 - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - module-info.java - - - - - - - - @@ -110,6 +91,11 @@ clean + + org.apache.maven.plugins + maven-compiler-plugin + 3.14.0 +