Release mdsal
[mdsal.git] / binding2 / mdsal-binding2-java-api-generator / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2016 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>3.0.7</version>
16         <relativePath>../../dom/dom-parent</relativePath>
17     </parent>
18
19     <artifactId>mdsal-binding2-java-api-generator</artifactId>
20     <version>0.15.7</version>
21     <packaging>bundle</packaging>
22
23     <dependencies>
24         <dependency>
25             <groupId>org.opendaylight.mdsal</groupId>
26             <artifactId>mdsal-binding2-generator-impl</artifactId>
27             <scope>test</scope>
28         </dependency>
29         <dependency>
30             <groupId>org.opendaylight.mdsal</groupId>
31             <artifactId>mdsal-binding2-generator-util</artifactId>
32         </dependency>
33         <dependency>
34             <groupId>org.opendaylight.mdsal</groupId>
35             <artifactId>mdsal-binding2-util</artifactId>
36         </dependency>
37         <dependency>
38             <groupId>org.opendaylight.yangtools</groupId>
39             <artifactId>yang-model-export</artifactId>
40         </dependency>
41         <dependency>
42             <groupId>org.opendaylight.yangtools</groupId>
43             <artifactId>yang-test-util</artifactId>
44         </dependency>
45         <dependency>
46             <groupId>com.typesafe.play</groupId>
47             <artifactId>twirl-api_2.12</artifactId>
48             <version>1.3.15</version>
49         </dependency>
50         <dependency>
51             <groupId>org.apache.commons</groupId>
52             <artifactId>commons-text</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>com.google.guava</groupId>
56             <artifactId>guava</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>org.sonatype.plexus</groupId>
60             <artifactId>plexus-build-api</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>org.codehaus.plexus</groupId>
64             <artifactId>plexus-container-default</artifactId>
65             <version>1.6</version>
66             <scope>provided</scope>
67             <exclusions>
68                 <!-- plexus-build-api pulls in version 1.5.8, while this pulls in 3.0.20.
69                      Dependency convergence would break if we did not specify this. -->
70                 <exclusion>
71                     <groupId>org.codehaus.plexus</groupId>
72                     <artifactId>plexus-utils</artifactId>
73                 </exclusion>
74             </exclusions>
75         </dependency>
76     </dependencies>
77
78     <build>
79         <plugins>
80             <plugin>
81                 <groupId>org.apache.felix</groupId>
82                 <artifactId>maven-bundle-plugin</artifactId>
83                 <extensions>true</extensions>
84                 <configuration>
85                     <instructions>
86                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
87                         <Import-Package>
88                             !org.sonatype.plexus.build.incremental,
89                             *
90                         </Import-Package>
91                     </instructions>
92                 </configuration>
93             </plugin>
94
95             <!-- Twirl -> compile Twirl files to Scala without Play framework dependencies needed -->
96             <plugin>
97                 <groupId>com.jakewharton.twirl</groupId>
98                 <artifactId>twirl-maven-plugin</artifactId>
99                 <version>1.1.0</version>
100                 <executions>
101                     <execution>
102                         <id>twirl-to-scala-first</id>
103                         <phase>generate-sources</phase>
104                         <goals>
105                             <goal>compile</goal>
106                         </goals>
107                     </execution>
108                 </executions>
109
110                 <!-- Required to get things working with JDK9+ -->
111                 <dependencies>
112                     <dependency>
113                         <groupId>org.scala-lang</groupId>
114                         <artifactId>scala-compiler</artifactId>
115                         <version>2.11.12</version>
116                     </dependency>
117                     <dependency>
118                         <groupId>org.scala-lang</groupId>
119                         <artifactId>scala-library</artifactId>
120                         <version>2.11.12</version>
121                     </dependency>
122                 </dependencies>
123             </plugin>
124
125             <!-- Scala -> compile Scala files generated from Twirl -->
126             <plugin>
127                 <groupId>net.alchim31.maven</groupId>
128                 <artifactId>scala-maven-plugin</artifactId>
129                 <version>3.3.2</version>
130                 <executions>
131                     <execution>
132                         <id>scala-compile-second</id>
133                         <phase>process-resources</phase>
134                         <goals>
135                             <goal>add-source</goal>
136                             <goal>compile</goal>
137                         </goals>
138                     </execution>
139                 </executions>
140             </plugin>
141
142             <plugin>
143                 <groupId>org.apache.maven.plugins</groupId>
144                 <artifactId>maven-checkstyle-plugin</artifactId>
145                 <configuration>
146                     <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
147                 </configuration>
148             </plugin>
149
150         </plugins>
151     </build>
152
153     <profiles>
154         <profile>
155             <!-- FIXME: org.opendaylight.mdsal.binding.javav2.java.api.generator.txt is not found -->
156             <id>javadoc-java11-disable</id>
157             <activation>
158                 <jdk>[11,)</jdk>
159             </activation>
160             <properties>
161                 <maven.javadoc.skip>true</maven.javadoc.skip>
162             </properties>
163         </profile>
164     </profiles>
165 </project>