4eee611f03985a067f3a0bf4641a939b62991415
[ccsdk/sli/adaptors.git] / grpc-resource / provider / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Copyright (C) 2019 Bell Canada
4
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16   -->
17 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19
20     <parent>
21         <groupId>org.onap.ccsdk.parent</groupId>
22         <artifactId>binding-parent</artifactId>
23         <version>1.2.1-SNAPSHOT</version>
24         <relativePath/>
25     </parent>
26
27     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
28     <artifactId>grpc-client-provider</artifactId>
29     <version>0.4.1-SNAPSHOT</version>
30     <packaging>bundle</packaging>
31     <modelVersion>4.0.0</modelVersion>
32
33     <name>ccsdk-sli-adaptors :: grpc-client :: ${project.artifactId}</name>
34
35     <properties>
36         <grpc.version>1.17.1</grpc.version>
37         <protobuf.version>3.6.1</protobuf.version>
38         <grpc.netty.version>4.1.30.Final</grpc.netty.version>
39     </properties>
40
41     <dependencyManagement>
42         <dependencies>
43             <dependency>
44                 <groupId>org.onap.ccsdk.sli.core</groupId>
45                 <artifactId>sli-core-artifacts</artifactId>
46                 <version>${ccsdk.sli.core.version}</version>
47                 <type>pom</type>
48                 <scope>import</scope>
49             </dependency>
50         </dependencies>
51     </dependencyManagement>
52
53     <dependencies>
54
55         <!-- SLI dependencies -->
56         <dependency>
57             <groupId>org.onap.ccsdk.sli.core</groupId>
58             <artifactId>sliPluginUtils-provider</artifactId>
59             <scope>provided</scope>
60         </dependency>
61
62         <!-- CDS dependencies -->
63         <dependency>
64             <groupId>org.onap.ccsdk.apps.components</groupId>
65             <artifactId>proto-definition</artifactId>
66             <version>${project.version}</version>
67             <exclusions>
68                 <exclusion>
69                     <groupId>com.google.code.findbugs</groupId>
70                     <artifactId>jsr305</artifactId>
71                 </exclusion>
72                 <exclusion>
73                     <groupId>com.google.protobuf</groupId>
74                     <artifactId>protobuf-java-util</artifactId>
75                 </exclusion>
76             </exclusions>
77         </dependency>
78
79         <!-- protobuf dependencies -->
80         <dependency>
81             <groupId>com.google.protobuf</groupId>
82             <artifactId>protobuf-java</artifactId>
83             <version>${protobuf.version}</version>
84         </dependency>
85
86         <!-- gRPC dependencies -->
87         <dependency>
88             <groupId>io.grpc</groupId>
89             <artifactId>grpc-protobuf</artifactId>
90             <version>${grpc.version}</version>
91             <exclusions>
92                 <exclusion>
93                     <groupId>com.google.code.findbugs</groupId>
94                     <artifactId>jsr305</artifactId>
95                 </exclusion>
96             </exclusions>
97         </dependency>
98         <dependency>
99             <groupId>io.grpc</groupId>
100             <artifactId>grpc-stub</artifactId>
101             <version>${grpc.version}</version>
102         </dependency>
103         <dependency>
104             <groupId>io.grpc</groupId>
105             <artifactId>grpc-netty</artifactId>
106             <version>${grpc.version}</version>
107         </dependency>
108
109         <dependency>
110             <groupId>org.osgi</groupId>
111             <artifactId>org.osgi.core</artifactId>
112             <scope>provided</scope>
113         </dependency>
114
115         <!-- Testing -->
116         <dependency>
117             <groupId>junit</groupId>
118             <artifactId>junit</artifactId>
119             <version>${junit.version}</version>
120             <scope>test</scope>
121         </dependency>
122         <dependency>
123             <groupId>org.mockito</groupId>
124             <artifactId>mockito-core</artifactId>
125             <version>${mockito.version}</version>
126             <scope>test</scope>
127         </dependency>
128     </dependencies>
129
130     <build>
131         <plugins>
132             <plugin>
133                 <groupId>org.apache.felix</groupId>
134                 <artifactId>maven-bundle-plugin</artifactId>
135                 <extensions>true</extensions>
136                 <configuration>
137                     <instructions>
138                         <Export-Package>
139                             io.grpc,
140                             io.grpc.inprocess,
141                             io.grpc.internal,
142                             io.grpc.util
143                         </Export-Package>
144                         <Import-Package>!com.google.errorprone.annotations,*</Import-Package>
145                         <Embed-Dependency>*;inline=META-INF/services/**</Embed-Dependency>
146                     </instructions>
147                 </configuration>
148             </plugin>
149         </plugins>
150     </build>
151
152 </project>