| <?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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <name>Tink Cryptography Library for Java</name> |
| <description>Tink is a small cryptographic library that provides a safe, simple, agile and fast way to accomplish some common cryptographic tasks. It is written by a group of cryptographers and security engineers at Google, but it is not an official Google product. |
| </description> |
| |
| <parent> |
| <groupId>com.google.crypto.tink</groupId> |
| <artifactId>parentpom</artifactId> |
| <version>1.0.0</version> |
| </parent> |
| <artifactId>tink</artifactId> |
| <packaging>jar</packaging> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.amazonaws</groupId> |
| <artifactId>aws-java-sdk-core</artifactId> |
| <exclusions> |
| <!-- already included in com.google.api-client --> |
| <exclusion> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| |
| </dependency> |
| |
| <dependency> |
| <groupId>com.amazonaws</groupId> |
| <artifactId>aws-java-sdk-kms</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.api-client</groupId> |
| <artifactId>google-api-client</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava-jdk5</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.apis</groupId> |
| <artifactId>google-api-services-cloudkms</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.auto.service</groupId> |
| <artifactId>auto-service</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java-util</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.errorprone</groupId> |
| <artifactId>error_prone_annotations</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.json</groupId> |
| <artifactId>json</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.truth</groupId> |
| <artifactId>truth</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <!-- exclude Android code which require Android SDK --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.5.1</version> |
| <configuration> |
| <excludes> |
| <exclude>**/AndroidKeysetManager.java</exclude> |
| <exclude>**/AndroidKeystoreAesGcm.java</exclude> |
| <exclude>**/AndroidKeystoreKmsClient.java</exclude> |
| <exclude>**/SharedPrefKeysetReader.java</exclude> |
| <exclude>**/SharedPrefKeysetWriter.java</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| |
| <!-- generate and build full protos --> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>${maven-antrun-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>generate-sources</id> |
| <phase>generate-sources</phase> |
| <configuration> |
| <target> |
| <property |
| name="protoc.filename" |
| value="protoc-${protobuf.version}-${os.detected.classifier}.exe"/> |
| <property |
| name="protoc.filepath" |
| value="${project.build.directory}/${protoc.filename}"/> |
| |
| <chmod file="${protoc.filepath}" perm="ugo+rx"/> |
| |
| <mkdir dir="${protobuf.output.dir}" /> |
| |
| <path id="protobuf.input.filepaths.path"> |
| <fileset dir="${tink.basedir}/proto"> |
| <include name="**/*.proto"/> |
| </fileset> |
| </path> |
| |
| <pathconvert |
| pathsep=" " |
| property="protobuf.input.filepaths" |
| refid="protobuf.input.filepaths.path"/> |
| |
| <exec executable="${protoc.filepath}" failonerror="true"> |
| <arg value="--proto_path=${tink.basedir}"/> |
| <arg value="--java_out=${protobuf.output.dir}" /> |
| <arg line="${protobuf.input.filepaths}"/> |
| </exec> |
| </target> |
| <sourceRoot>${protobuf.output.dir}</sourceRoot> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |