CLI version update
[cli.git] / grpc / pom.xml
1 <!--
2     Copyright 2018 Huawei Technologies Co., Ltd.
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8         http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15  -->
16 <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">
17   <modelVersion>4.0.0</modelVersion>
18     <parent>
19         <groupId>org.onap.cli</groupId>
20         <artifactId>cli</artifactId>
21         <version>2.0.4</version>
22     </parent>
23   <version>1.0.0</version>
24   <artifactId>oclip-grpc</artifactId>
25   <packaging>pom</packaging>
26   <name>oclip/grpc</name>
27   <modules>
28     <module>grpc-stub</module>
29     <module>grpc-server</module>
30     <module>grpc-client</module>
31   </modules>
32   <properties>
33     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34     <grpc.version>1.8.0</grpc.version>
35   </properties>
36   <dependencies>
37     <dependency>
38       <groupId>io.grpc</groupId>
39       <artifactId>grpc-netty</artifactId>
40       <version>${grpc.version}</version>
41     </dependency>
42     <dependency>
43       <groupId>io.grpc</groupId>
44       <artifactId>grpc-protobuf</artifactId>
45       <version>${grpc.version}</version>
46     </dependency>
47     <dependency>
48       <groupId>io.grpc</groupId>
49       <artifactId>grpc-stub</artifactId>
50       <version>${grpc.version}</version>
51     </dependency>
52     <dependency>
53       <groupId>io.grpc</groupId>
54       <artifactId>grpc-testing</artifactId>
55       <version>${grpc.version}</version>
56       <scope>test</scope>
57     </dependency>
58     <dependency>
59       <groupId>com.google.api.grpc</groupId>
60       <artifactId>proto-google-common-protos</artifactId>
61       <version>0.1.9</version>
62     </dependency>
63   </dependencies>
64   <build>
65     <extensions>
66       <extension>
67         <groupId>kr.motd.maven</groupId>
68         <artifactId>os-maven-plugin</artifactId>
69         <version>1.5.0.Final</version>
70       </extension>
71     </extensions>
72     <plugins>
73       <plugin>
74         <groupId>org.xolstice.maven.plugins</groupId>
75         <artifactId>protobuf-maven-plugin</artifactId>
76         <version>0.5.0</version>
77         <configuration>
78           <protocArtifact>com.google.protobuf:protoc:3.4.0:exe:${os.detected.classifier}</protocArtifact>
79           <pluginId>grpc-java</pluginId>
80           <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
81         </configuration>
82         <executions>
83           <execution>
84             <goals>
85               <goal>compile</goal>
86               <goal>compile-custom</goal>
87             </goals>
88           </execution>
89         </executions>
90       </plugin>
91  <!--      <plugin>
92         <groupId>org.apache.maven.plugins</groupId>
93         <artifactId>maven-enforcer-plugin</artifactId>
94         <version>1.4.1</version>
95         <executions>
96           <execution>
97             <id>enforce</id>
98             <goals>
99               <goal>enforce</goal>
100             </goals>
101             <configuration>
102               <rules>
103                 <requireUpperBoundDeps/>
104               </rules>
105             </configuration>
106           </execution>
107         </executions>
108       </plugin> -->
109     </plugins>
110      <pluginManagement>
111             <plugins>
112                 <plugin>
113                   <groupId>org.apache.maven.plugins</groupId>
114                   <artifactId>maven-dependency-plugin</artifactId>
115                   <executions>
116                     <execution>
117                       <id>copy-artifact</id>
118                       <phase>package</phase>
119                       <goals>
120                         <goal>copy</goal>
121                         <goal>copy-dependencies</goal>
122                       </goals>
123                       <configuration>
124                         <artifactItems>
125                             <artifactItem>
126                               <groupId>${project.groupId}</groupId>
127                               <artifactId>${project.artifactId}</artifactId>
128                               <version>${project.version}</version>
129                               <type>${project.packaging}</type>
130                             </artifactItem>
131                         </artifactItems>
132                         <outputDirectory>${project.build.directory}/lib</outputDirectory>
133                           <overWriteReleases>false</overWriteReleases>
134                           <overWriteSnapshots>false</overWriteSnapshots>
135                           <overWriteIfNewer>true</overWriteIfNewer>
136                           <excludeArtifactIds>junit,jmockit</excludeArtifactIds>
137                       </configuration>
138                     </execution>
139                   </executions>
140                 </plugin>
141                 <plugin>
142                   <groupId>org.apache.maven.plugins</groupId>
143                   <artifactId>maven-dependency-plugin</artifactId>
144                   <executions>
145                     <execution>
146                       <id>copy-artifact</id>
147                       <phase>package</phase>
148                       <goals>
149                         <goal>copy</goal>
150                       </goals>
151                       <configuration>
152                         <artifactItems>
153                             <artifactItem>
154                               <groupId>${project.groupId}</groupId>
155                               <artifactId>${project.artifactId}</artifactId>
156                               <version>${project.version}</version>
157                               <type>${project.packaging}</type>
158                             </artifactItem>
159                         </artifactItems>
160                         <outputDirectory>../../grpc/target/lib</outputDirectory>
161                       </configuration>
162                     </execution>
163                   </executions>
164                 </plugin>
165             </plugins>
166         </pluginManagement>
167   </build>
168 </project>