| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <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> |
| |
| <parent> |
| <groupId>org.apache.dubbo</groupId> |
| <artifactId>dubbo-parent</artifactId> |
| <version>${revision}</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| <packaging>jar</packaging> |
| <artifactId>dubbo-compiler</artifactId> |
| |
| <name>${project.artifactId}</name> |
| <description>Dubbo customized RPC stub compiler.</description> |
| |
| <properties> |
| <maven_compiler_version>3.6.0</maven_compiler_version> |
| <maven_jar_version>3.0.2</maven_jar_version> |
| <maven_source_version>3.0.1</maven_source_version> |
| <maven_javadoc_version>3.0.1</maven_javadoc_version> |
| <java_source_version>1.8</java_source_version> |
| <java_target_version>1.8</java_target_version> |
| <file_encoding>UTF-8</file_encoding> |
| |
| <skip_maven_deploy>false</skip_maven_deploy> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.salesforce.servicelibs</groupId> |
| <artifactId>jprotoc</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-stub</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-protobuf</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-context</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.salesforce.servicelibs</groupId> |
| <artifactId>grpc-contrib</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${maven_compiler_version}</version> |
| <configuration> |
| <compilerArgument>-proc:none</compilerArgument> |
| <fork>true</fork> |
| <source>${java_source_version}</source> |
| <target>${java_target_version}</target> |
| <encoding>${file_encoding}</encoding> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>${maven_jar_version}</version> |
| <configuration> |
| <archive> |
| <manifest> |
| <addClasspath>true</addClasspath> |
| <mainClass>org.apache.dubbo.gen.grpc.DubboGrpcGenerator</mainClass> |
| </manifest> |
| </archive> |
| </configuration> |
| </plugin> |
| |
| <!-- Optional, used to build directly executable packages (without using 'java -jar'), |
| for example 'artifactId-1.0.0-osx-x86_64.exe', 'artifactId-1.0.0-osx-x86_64.exe' --> |
| <plugin> |
| <groupId>com.salesforce.servicelibs</groupId> |
| <artifactId>canteen-maven-plugin</artifactId> |
| <version>1.0.0</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>bootstrap</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |