Release mdsal
[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>9.0.3</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.12.8</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-model-api</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>org.opendaylight.mdsal</groupId>
44             <artifactId>mdsal-binding-dom-codec-spi</artifactId>
45         </dependency>
46         <dependency>
47             <groupId>com.guicedee.services</groupId>
48             <artifactId>javax.inject</artifactId>
49             <optional>true</optional>
50         </dependency>
51         <dependency>
52             <groupId>org.kohsuke.metainf-services</groupId>
53             <artifactId>metainf-services</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>org.osgi</groupId>
57             <artifactId>org.osgi.service.component.annotations</artifactId>
58         </dependency>
59
60         <dependency>
61             <groupId>org.opendaylight.yangtools</groupId>
62             <artifactId>mockito-configuration</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.opendaylight.mdsal</groupId>
66             <artifactId>mdsal-binding-test-model</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>org.opendaylight.mdsal</groupId>
70             <artifactId>mdsal-binding-generator</artifactId>
71             <scope>test</scope>
72         </dependency>
73         <dependency>
74             <groupId>org.opendaylight.mdsal</groupId>
75             <artifactId>mdsal-binding-runtime-spi</artifactId>
76             <scope>test</scope>
77         </dependency>
78     </dependencies>
79
80     <build>
81         <plugins>
82             <plugin>
83                 <groupId>org.apache.felix</groupId>
84                 <artifactId>maven-bundle-plugin</artifactId>
85                 <extensions>true</extensions>
86                 <configuration>
87                     <instructions>
88                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
89                         <Private-Package>
90                             org.opendaylight.mdsal.binding.dom.codec.impl,
91                             org.opendaylight.mdsal.binding.dom.codec.loader,
92                         </Private-Package>
93                         <Import-Package>
94                             !net.bytebuddy.*,
95                             *
96                         </Import-Package>
97                     </instructions>
98                 </configuration>
99             </plugin>
100
101             <!-- Shade Byte-Buddy -->
102             <plugin>
103                 <groupId>org.apache.maven.plugins</groupId>
104                 <artifactId>maven-shade-plugin</artifactId>
105                 <executions>
106                     <execution>
107                         <phase>package</phase>
108                         <goals>
109                             <goal>shade</goal>
110                         </goals>
111                         <configuration>
112                             <shadedArtifactAttached>false</shadedArtifactAttached>
113                             <createDependencyReducedPom>true</createDependencyReducedPom>
114                             <createSourcesJar>true</createSourcesJar>
115                             <shadeSourcesContent>true</shadeSourcesContent>
116                             <minimizeJar>true</minimizeJar>
117                             <relocations>
118                                 <relocation>
119                                     <pattern>${shade.source}</pattern>
120                                     <shadedPattern>${shade.target}</shadedPattern>
121                                 </relocation>
122                             </relocations>
123                             <artifactSet>
124                                 <includes>
125                                     <include>net.bytebuddy:byte-buddy</include>
126                                 </includes>
127                             </artifactSet>
128                             <filters>
129                                 <filter>
130                                     <artifact>net.bytebuddy:byte-buddy</artifact>
131                                     <excludes>
132                                         <exclude>META-INF/**</exclude>
133                                     </excludes>
134                                 </filter>
135                             </filters>
136                         </configuration>
137                     </execution>
138                 </executions>
139             </plugin>
140         </plugins>
141     </build>
142 </project>