diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 762330c9..7a395436 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -42,6 +42,7 @@ jobs: - name: Publish package run: mvn --batch-mode deploy env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} BUF_INPUT_HTTPS_USERNAME: opentdf-bot BUF_INPUT_HTTPS_PASSWORD: ${{ secrets.PERSONAL_ACCESS_TOKEN_OPENTDF }} diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..156808ce --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +# The Clear BSD License + +Copyright 2023 Virtru Corporation +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) +provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +* Neither the name of Virtru Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without + specific prior written permission. +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE diff --git a/pom.xml b/pom.xml index 5f3c3d55..082f18f8 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,8 @@ - + 4.0.0 io.opentdf.platform @@ -11,7 +12,7 @@ pom UTF-8 - + 11 11 2.20.0 @@ -29,7 +30,7 @@ platform-client 0.1.0-SNAPSHOT - + org.apache.logging.log4j log4j-api ${log4j.version} @@ -85,14 +86,17 @@ - + - + maven-clean-plugin 3.1.0 - + maven-resources-plugin 3.0.2 @@ -117,7 +121,8 @@ maven-deploy-plugin 2.8.2 - + maven-site-plugin 3.7.1 @@ -133,10 +138,10 @@ false - - - - + + + + @@ -158,12 +163,12 @@ ${maven.compiler.target} WARN - - - - - - + + + + + + @@ -192,18 +197,17 @@ - github - ghcr - https://maven.pkg.github.com/opentdf/java-sdk + ossrh + Central Repository OSSRH + https://oss.sonatype.org/service/local/staging/deploy/maven2/ - github - ghcr - https://maven.pkg.github.com/opentdf/java-sdk + ossrh + Central Repository OSSRH + https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + \ No newline at end of file diff --git a/protocol/pom.xml b/protocol/pom.xml index de03d203..dc7019c6 100644 --- a/protocol/pom.xml +++ b/protocol/pom.xml @@ -1,109 +1,123 @@ - - 4.0.0 + + 4.0.0 + io.opentdf.platform + protocol + protocol + 0.1.0-SNAPSHOT + + sdk-pom io.opentdf.platform - protocol - protocol 0.1.0-SNAPSHOT - - sdk-pom - io.opentdf.platform - 0.1.0-SNAPSHOT - - jar - - - com.google.protobuf - protobuf-java - ${protobuf.version} - - - javax.annotation - javax.annotation-api - 1.3.2 - - - build.buf - protovalidate - 0.1.9 - - - io.grpc - grpc-protobuf - ${grpc.version} - - - io.grpc - grpc-stub - ${grpc.version} - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 3.1.0 - - - generateSources - generate-sources - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - run - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.5.0 - - - add-source - generate-sources - - add-source - - - - src/main/protogen - - - - - - - - + + jar + + + com.google.protobuf + protobuf-java + ${protobuf.version} + + + javax.annotation + javax.annotation-api + 1.3.2 + + + build.buf + protovalidate + 0.1.9 + + + io.grpc + grpc-protobuf + ${grpc.version} + + + io.grpc + grpc-stub + ${grpc.version} + + + + + + ${basedir}/.. + + LICENSE + + META-INF + false + + + ${basedir}/src/main/resources + + + + + org.apache.maven.plugins + maven-antrun-plugin + 3.1.0 + + + generateSources + generate-sources + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + run + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.5.0 + + + add-source + generate-sources + + add-source + + + + src/main/protogen + + + + + + + + \ No newline at end of file diff --git a/sdk/pom.xml b/sdk/pom.xml index e8b82672..9eba7271 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -1,7 +1,8 @@ - + 4.0.0 io.opentdf.platform sdk @@ -23,4 +24,19 @@ junit-jupiter-engine - + + + + ${basedir}/.. + + LICENSE + + META-INF + false + + + ${basedir}/src/main/resources + + + + \ No newline at end of file