Removed the deprecated usage of readFileToString & writeStringToFile
[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>6.0.1-SNAPSHOT</version>
22     </parent>
23   <version>6.0.1-SNAPSHOT</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.29.0</grpc.version>
35   </properties>
36   <dependencies>
37 <!-- netty-codec-http2 excluded due to Security Issues:- CVE-2019-9512,CVE-2019-9514,CVE-2019-9515,CVE-2019-9518,CVE-2019-16869
38  and added invulnerable netty-codec-http2 4.1.46.Final -->
39     <dependency>
40       <groupId>io.grpc</groupId>
41       <artifactId>grpc-netty</artifactId>
42       <version>${grpc.version}</version>
43     </dependency>
44       <dependency>
45       <groupId>io.grpc</groupId>
46       <artifactId>grpc-protobuf</artifactId>
47       <version>${grpc.version}</version>
48     </dependency>
49     <dependency>
50       <groupId>io.grpc</groupId>
51       <artifactId>grpc-stub</artifactId>
52       <version>${grpc.version}</version>
53     </dependency>
54     <dependency>
55       <groupId>io.grpc</groupId>
56       <artifactId>grpc-testing</artifactId>
57       <version>${grpc.version}</version>
58       <scope>test</scope>
59     </dependency>
60     <dependency>
61       <groupId>com.google.api.grpc</groupId>
62       <artifactId>proto-google-common-protos</artifactId>
63       <version>0.1.9</version>
64     </dependency>
65     <dependency>
66       <groupId>javax.annotation</groupId>
67       <artifactId>javax.annotation-api</artifactId>
68       <version>1.3.2</version>
69     </dependency>
70   </dependencies>
71   <build>
72     <extensions>
73       <extension>
74         <groupId>kr.motd.maven</groupId>
75         <artifactId>os-maven-plugin</artifactId>
76         <version>1.5.0.Final</version>
77       </extension>
78     </extensions>
79     <plugins>
80       <plugin>
81         <groupId>org.xolstice.maven.plugins</groupId>
82         <artifactId>protobuf-maven-plugin</artifactId>
83         <version>0.5.0</version>
84         <configuration>
85           <protocArtifact>com.google.protobuf:protoc:3.4.0:exe:${os.detected.classifier}</protocArtifact>
86           <pluginId>grpc-java</pluginId>
87           <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
88         </configuration>
89         <executions>
90           <execution>
91             <goals>
92               <goal>compile</goal>
93               <goal>compile-custom</goal>
94             </goals>
95           </execution>
96         </executions>
97       </plugin>
98     </plugins>
99      <pluginManagement>
100             <plugins>
101                 <plugin>
102                   <groupId>org.apache.maven.plugins</groupId>
103                   <artifactId>maven-dependency-plugin</artifactId>
104                   <executions>
105                     <execution>
106                       <id>copy-artifact</id>
107                       <phase>package</phase>
108                       <goals>
109                         <goal>copy</goal>
110                         <goal>copy-dependencies</goal>
111                       </goals>
112                       <configuration>
113                         <artifactItems>
114                             <artifactItem>
115                               <groupId>${project.groupId}</groupId>
116                               <artifactId>${project.artifactId}</artifactId>
117                               <version>${project.version}</version>
118                               <type>${project.packaging}</type>
119                             </artifactItem>
120                         </artifactItems>
121                         <outputDirectory>${project.build.directory}/lib</outputDirectory>
122                           <overWriteReleases>false</overWriteReleases>
123                           <overWriteSnapshots>false</overWriteSnapshots>
124                           <overWriteIfNewer>true</overWriteIfNewer>
125                           <excludeArtifactIds>junit,jmockit</excludeArtifactIds>
126                       </configuration>
127                     </execution>
128                   </executions>
129                 </plugin>
130                 <plugin>
131                   <groupId>org.apache.maven.plugins</groupId>
132                   <artifactId>maven-dependency-plugin</artifactId>
133                   <executions>
134                     <execution>
135                       <id>copy-artifact</id>
136                       <phase>package</phase>
137                       <goals>
138                         <goal>copy</goal>
139                       </goals>
140                       <configuration>
141                         <artifactItems>
142                             <artifactItem>
143                               <groupId>${project.groupId}</groupId>
144                               <artifactId>${project.artifactId}</artifactId>
145                               <version>${project.version}</version>
146                               <type>${project.packaging}</type>
147                             </artifactItem>
148                         </artifactItems>
149                         <outputDirectory>../../grpc/target/lib</outputDirectory>
150                       </configuration>
151                     </execution>
152                   </executions>
153                 </plugin>
154             </plugins>
155         </pluginManagement>
156   </build>
157 </project>