Separate out mdsal-binding-dom-codec-spi
[mdsal.git] / binding / mdsal-binding-dom-codec / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11     <modelVersion>4.0.0</modelVersion>
12     <parent>
13         <groupId>org.opendaylight.mdsal</groupId>
14         <artifactId>dom-parent</artifactId>
15         <version>6.0.0-SNAPSHOT</version>
16         <relativePath>../../dom/dom-parent</relativePath>
17     </parent>
18
19     <artifactId>mdsal-binding-dom-codec</artifactId>
20     <packaging>bundle</packaging>
21
22     <properties>
23         <shade.source>net.bytebuddy</shade.source>
24         <shade.target>org.opendaylight.mdsal.binding.dom.codec.jar.bytebuddy</shade.target>
25     </properties>
26
27     <dependencies>
28         <dependency>
29             <!-- We are going to shade this -->
30             <groupId>net.bytebuddy</groupId>
31             <artifactId>byte-buddy</artifactId>
32             <version>1.10.7</version>
33         </dependency>
34         <dependency>
35             <groupId>org.opendaylight.yangtools</groupId>
36             <artifactId>yang-data-impl</artifactId>
37         </dependency>
38         <dependency>
39             <groupId>org.opendaylight.mdsal</groupId>
40             <artifactId>mdsal-binding-generator-api</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>org.opendaylight.mdsal</groupId>
44             <artifactId>mdsal-binding-generator-util</artifactId>
45         </dependency>
46         <dependency>
47             <groupId>org.opendaylight.mdsal</groupId>
48             <artifactId>mdsal-binding-dom-codec-spi</artifactId>
49         </dependency>
50
51         <dependency>
52             <groupId>org.opendaylight.yangtools</groupId>
53             <artifactId>mockito-configuration</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>org.opendaylight.mdsal</groupId>
57             <artifactId>mdsal-binding-test-model</artifactId>
58         </dependency>
59         <dependency>
60             <groupId>org.opendaylight.mdsal</groupId>
61             <artifactId>mdsal-binding-generator-impl</artifactId>
62             <scope>test</scope>
63         </dependency>
64     </dependencies>
65
66     <build>
67         <plugins>
68             <plugin>
69                 <groupId>org.apache.felix</groupId>
70                 <artifactId>maven-bundle-plugin</artifactId>
71                 <extensions>true</extensions>
72                 <configuration>
73                     <instructions>
74                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
75                         <Export-Package>
76                             org.opendaylight.mdsal.binding.dom.codec.*,
77                             ;-split-package:=error
78                         </Export-Package>
79                         <Private-Package>
80                             org.opendaylight.mdsal.binding.dom.codec.loader,
81                         </Private-Package>
82                         <Import-Package>
83                             !net.bytebuddy.*,
84                             *
85                         </Import-Package>
86                     </instructions>
87                 </configuration>
88             </plugin>
89
90             <!-- Shade Byte-Buddy -->
91             <plugin>
92                 <groupId>org.apache.maven.plugins</groupId>
93                 <artifactId>maven-shade-plugin</artifactId>
94                 <executions>
95                     <execution>
96                         <phase>package</phase>
97                         <goals>
98                             <goal>shade</goal>
99                         </goals>
100                         <configuration>
101                             <shadedArtifactAttached>false</shadedArtifactAttached>
102                             <createDependencyReducedPom>true</createDependencyReducedPom>
103                             <createSourcesJar>true</createSourcesJar>
104                             <shadeSourcesContent>true</shadeSourcesContent>
105                             <minimizeJar>true</minimizeJar>
106                             <relocations>
107                                 <relocation>
108                                     <pattern>${shade.source}</pattern>
109                                     <shadedPattern>${shade.target}</shadedPattern>
110                                 </relocation>
111                             </relocations>
112                             <artifactSet>
113                                 <includes>
114                                     <include>net.bytebuddy:byte-buddy</include>
115                                 </includes>
116                             </artifactSet>
117                             <filters>
118                                 <filter>
119                                     <artifact>net.bytebuddy:byte-buddy</artifact>
120                                     <excludes>
121                                         <exclude>META-INF/**</exclude>
122                                     </excludes>
123                                 </filter>
124                             </filters>
125                         </configuration>
126                     </execution>
127                 </executions>
128             </plugin>
129         </plugins>
130     </build>
131 </project>