|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + <groupId>io.grpc</groupId> |
| 6 | + <artifactId>example-jwt-auth</artifactId> |
| 7 | + <packaging>jar</packaging> |
| 8 | + <!-- Feel free to delete the comment at the end of these lines. It is just |
| 9 | + for safely updating the version in our release process. --> |
| 10 | + <version>1.23.0-SNAPSHOT</version><!-- CURRENT_GRPC_VERSION --> |
| 11 | + <name>example-jwt-auth</name> |
| 12 | + <url>https://github.com/grpc/grpc-java</url> |
| 13 | + |
| 14 | + <properties> |
| 15 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 16 | + <grpc.version>1.23.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION --> |
| 17 | + <protobuf.version>3.7.1</protobuf.version> |
| 18 | + <protoc.version>3.7.1</protoc.version> |
| 19 | + <!-- required for jdk9 --> |
| 20 | + <maven.compiler.source>1.7</maven.compiler.source> |
| 21 | + <maven.compiler.target>1.7</maven.compiler.target> |
| 22 | + </properties> |
| 23 | + |
| 24 | + <dependencyManagement> |
| 25 | + <dependencies> |
| 26 | + <dependency> |
| 27 | + <groupId>io.grpc</groupId> |
| 28 | + <artifactId>grpc-bom</artifactId> |
| 29 | + <version>${grpc.version}</version> |
| 30 | + <type>pom</type> |
| 31 | + <scope>import</scope> |
| 32 | + </dependency> |
| 33 | + </dependencies> |
| 34 | + </dependencyManagement> |
| 35 | + |
| 36 | + <dependencies> |
| 37 | + <dependency> |
| 38 | + <groupId>io.grpc</groupId> |
| 39 | + <artifactId>grpc-netty-shaded</artifactId> |
| 40 | + <scope>runtime</scope> |
| 41 | + </dependency> |
| 42 | + <dependency> |
| 43 | + <groupId>io.grpc</groupId> |
| 44 | + <artifactId>grpc-protobuf</artifactId> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>io.grpc</groupId> |
| 48 | + <artifactId>grpc-stub</artifactId> |
| 49 | + </dependency> |
| 50 | + <dependency> |
| 51 | + <groupId>io.jsonwebtoken</groupId> |
| 52 | + <artifactId>jjwt</artifactId> |
| 53 | + <version>0.9.1</version> |
| 54 | + </dependency> |
| 55 | + <dependency> |
| 56 | + <groupId>javax.xml.bind</groupId> |
| 57 | + <artifactId>jaxb-api</artifactId> |
| 58 | + <version>2.3.1</version> |
| 59 | + </dependency> |
| 60 | + <dependency> |
| 61 | + <groupId>javax.annotation</groupId> |
| 62 | + <artifactId>javax.annotation-api</artifactId> |
| 63 | + <version>1.2</version> |
| 64 | + <scope>provided</scope> <!-- not needed at runtime --> |
| 65 | + </dependency> |
| 66 | + <dependency> |
| 67 | + <groupId>io.grpc</groupId> |
| 68 | + <artifactId>grpc-testing</artifactId> |
| 69 | + <scope>test</scope> |
| 70 | + </dependency> |
| 71 | + <dependency> |
| 72 | + <groupId>junit</groupId> |
| 73 | + <artifactId>junit</artifactId> |
| 74 | + <version>4.12</version> |
| 75 | + <scope>test</scope> |
| 76 | + </dependency> |
| 77 | + <dependency> |
| 78 | + <groupId>org.mockito</groupId> |
| 79 | + <artifactId>mockito-core</artifactId> |
| 80 | + <version>2.25.1</version> |
| 81 | + <scope>test</scope> |
| 82 | + </dependency> |
| 83 | + </dependencies> |
| 84 | + |
| 85 | + <build> |
| 86 | + <extensions> |
| 87 | + <extension> |
| 88 | + <groupId>kr.motd.maven</groupId> |
| 89 | + <artifactId>os-maven-plugin</artifactId> |
| 90 | + <version>1.5.0.Final</version> |
| 91 | + </extension> |
| 92 | + </extensions> |
| 93 | + <plugins> |
| 94 | + <plugin> |
| 95 | + <groupId>org.xolstice.maven.plugins</groupId> |
| 96 | + <artifactId>protobuf-maven-plugin</artifactId> |
| 97 | + <version>0.5.1</version> |
| 98 | + <configuration> |
| 99 | + <protocArtifact> |
| 100 | + com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier} |
| 101 | + </protocArtifact> |
| 102 | + <pluginId>grpc-java</pluginId> |
| 103 | + <pluginArtifact> |
| 104 | + io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier} |
| 105 | + </pluginArtifact> |
| 106 | + </configuration> |
| 107 | + <executions> |
| 108 | + <execution> |
| 109 | + <goals> |
| 110 | + <goal>compile</goal> |
| 111 | + <goal>compile-custom</goal> |
| 112 | + </goals> |
| 113 | + </execution> |
| 114 | + </executions> |
| 115 | + </plugin> |
| 116 | + <plugin> |
| 117 | + <groupId>org.apache.maven.plugins</groupId> |
| 118 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 119 | + <version>1.4.1</version> |
| 120 | + <executions> |
| 121 | + <execution> |
| 122 | + <id>enforce</id> |
| 123 | + <goals> |
| 124 | + <goal>enforce</goal> |
| 125 | + </goals> |
| 126 | + <configuration> |
| 127 | + <rules> |
| 128 | + <requireUpperBoundDeps/> |
| 129 | + </rules> |
| 130 | + </configuration> |
| 131 | + </execution> |
| 132 | + </executions> |
| 133 | + </plugin> |
| 134 | + </plugins> |
| 135 | + </build> |
| 136 | +</project> |
0 commit comments