| <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>com.helloworld</groupId> |
| <artifactId>helloworld</artifactId> |
| <version>0.1.0</version> |
| <packaging>jar</packaging> |
| |
| <name>Tink for Java HelloWorld</name> |
| <url>https://github.com/thaidn/tink-examples/helloworld/java</url> |
| |
| <repositories> |
| <repository> |
| <id>sonatype-snapshots</id> |
| <name>sonatype-snapshots</name> |
| <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
| <snapshots> |
| <enabled>true</enabled> |
| <updatePolicy>always</updatePolicy> |
| </snapshots> |
| <releases> |
| <updatePolicy>always</updatePolicy> |
| </releases> |
| </repository> |
| </repositories> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| <java.version>1.7</java.version> |
| <maven-enforcer-plugin.version>1.3.1</maven-enforcer-plugin.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>args4j</groupId> |
| <artifactId>args4j</artifactId> |
| <version>2.33</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.crypto.tink</groupId> |
| <artifactId>tink</artifactId> |
| <version>HEAD-SNAPSHOT</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.crypto.tink</groupId> |
| <artifactId>tink-awskms</artifactId> |
| <version>HEAD-SNAPSHOT</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.crypto.tink</groupId> |
| <artifactId>tink-gcpkms</artifactId> |
| <version>HEAD-SNAPSHOT</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.5.1</version> |
| <configuration> |
| <source>${java.version}</source> |
| <target>${java.version}</target> |
| <compilerArgument>-Werror</compilerArgument> |
| <compilerArgument>-Xlint:deprecation</compilerArgument> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.2.1</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>java</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <mainClass>com.helloworld.HelloWorld</mainClass> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-enforcer-plugin</artifactId> |
| <version>${maven-enforcer-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>enforce</id> |
| <configuration> |
| <rules> |
| <DependencyConvergence/> |
| </rules> |
| <fail>true</fail> |
| </configuration> |
| <goals> |
| <goal>enforce</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |