Skip to content
Closed
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
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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
56 changes: 30 additions & 26 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?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">
<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">
<modelVersion>4.0.0</modelVersion>

<groupId>io.opentdf.platform</groupId>
Expand All @@ -11,7 +12,7 @@
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- TODO: Move to new version of Java-->
<!-- TODO: Move to new version of Java-->
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<log4j.version>2.20.0</log4j.version>
Expand All @@ -29,7 +30,7 @@
<artifactId>platform-client</artifactId>
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:java-sdk:current} -->
</dependency>
<dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
Expand Down Expand Up @@ -85,14 +86,17 @@
</dependencyManagement>

<build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be
moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<!-- clean lifecycle, see
https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
<!-- default lifecycle, jar packaging: see
https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
Expand All @@ -117,7 +121,8 @@
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
<!-- site lifecycle, see
https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
Expand All @@ -133,10 +138,10 @@
<configuration>
<failFast>false</failFast>
<rules>
<dependencyConvergence/>
<requireUpperBoundDeps/>
<requireSameVersions/>
<banDuplicatePomDependencyVersions/>
<dependencyConvergence />
<requireUpperBoundDeps />
<requireSameVersions />
<banDuplicatePomDependencyVersions />
</rules>
</configuration>
</plugin>
Expand All @@ -158,12 +163,12 @@
<version>${maven.compiler.target}</version>
<level>WARN</level>
</requireJavaVersion>
<dependencyConvergence/>
<requireUpperBoundDeps/>
<requireSameVersions/>
<requirePluginVersions/>
<banDuplicatePomDependencyVersions/>
<reactorModuleConvergence/>
<dependencyConvergence />
<requireUpperBoundDeps />
<requireSameVersions />
<requirePluginVersions />
<banDuplicatePomDependencyVersions />
<reactorModuleConvergence />
</rules>
</configuration>
<executions>
Expand Down Expand Up @@ -192,18 +197,17 @@
</activation>
<distributionManagement>
<repository>
<id>github</id>
<name>ghcr</name>
<url>https://maven.pkg.github.com/opentdf/java-sdk</url>
<id>ossrh</id>
<name>Central Repository OSSRH</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>github</id>
<name>ghcr</name>
<url>https://maven.pkg.github.com/opentdf/java-sdk</url>
<id>ossrh</id>
<name>Central Repository OSSRH</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</snapshotRepository>
</distributionManagement>
</profile>

</profiles>
</project>

</project>
224 changes: 119 additions & 105 deletions protocol/pom.xml
Original file line number Diff line number Diff line change
@@ -1,109 +1,123 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>io.opentdf.platform</groupId>
<name>protocol</name>
<artifactId>protocol</artifactId>
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:java-sdk:current} -->
<parent>
<artifactId>sdk-pom</artifactId>
<groupId>io.opentdf.platform</groupId>
<name>protocol</name>
<artifactId>protocol</artifactId>
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:java-sdk:current} -->
<parent>
<artifactId>sdk-pom</artifactId>
<groupId>io.opentdf.platform</groupId>
<version>0.1.0-SNAPSHOT</version><!-- {x-version-update:java-sdk:current} -->
</parent>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>build.buf</groupId>
<artifactId>protovalidate</artifactId>
<version>0.1.9</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>${grpc.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>generateSources</id>
<phase>generate-sources</phase>
<configuration>
<target>
<exec executable="rm">
<arg value="-rf" />
<arg value="src/main/protogen" />
</exec>
<exec executable="buf" dir="../">
<arg value="generate" />
<arg value="https://github.com/opentdf/platform.git#branch=main,subdir=services" />
<arg value="--exclude-path"/>
<arg value="authorization/idp_plugin.proto"/>
</exec>
<exec executable="buf" dir="../">
<arg value="generate" />
<arg value="buf.build/grpc-ecosystem/grpc-gateway" />
<arg value="-o" />
<arg value="tmp-gen"/>
</exec>
<exec executable="cp" dir="../">
<arg value="-r" />
<arg value="tmp-gen/protocol/src/main/protogen/grpc"/>
<arg value="protocol/src/main/protogen"/>
</exec>
<exec executable="rm" dir="../">
<arg value="-rf" />
<arg value="tmp-gen"/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/protogen</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
</parent>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>build.buf</groupId>
<artifactId>protovalidate</artifactId>
<version>0.1.9</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>${grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>${grpc.version}</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>${basedir}/..</directory>
<includes>
<include>LICENSE</include>
</includes>
<targetPath>META-INF</targetPath>
<filtering>false</filtering>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>generateSources</id>
<phase>generate-sources</phase>
<configuration>
<target>
<exec executable="rm">
<arg value="-rf" />
<arg value="src/main/protogen" />
</exec>
<exec executable="buf" dir="../">
<arg value="generate" />
<arg value="https://github.com/opentdf/platform.git#branch=main,subdir=services" />
<arg value="--exclude-path" />
<arg value="authorization/idp_plugin.proto" />
</exec>
<exec executable="buf" dir="../">
<arg value="generate" />
<arg value="buf.build/grpc-ecosystem/grpc-gateway" />
<arg value="-o" />
<arg value="tmp-gen" />
</exec>
<exec executable="cp" dir="../">
<arg value="-r" />
<arg value="tmp-gen/protocol/src/main/protogen/grpc" />
<arg value="protocol/src/main/protogen" />
</exec>
<exec executable="rm" dir="../">
<arg value="-rf" />
<arg value="tmp-gen" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/protogen</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading