-
Notifications
You must be signed in to change notification settings - Fork 406
/
pom.xml
122 lines (115 loc) · 5.31 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!--
Copyright (c) 2013-2022 Sierra Wireless and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
http://www.eclipse.org/legal/epl-v20.html
and the Eclipse Distribution License is available at
http://www.eclipse.org/org/documents/edl-v10.html.
Contributors:
Sierra Wireless - initial API and implementation
-->
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.leshan</groupId>
<artifactId>leshan-build-config</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>
<artifactId>lib-build-config</artifactId>
<packaging>pom</packaging>
<name>leshan - shared library build config</name>
<description> Shared Maven configuration for all Leshan library modules</description>
<build>
<plugins>
<!-- Check that we don't use Java API which is not available for android -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<signature>
<groupId>net.sf.androidscents.signature</groupId>
<artifactId>android-api-level-19</artifactId>
<version>4.4.2_r4</version>
</signature>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Check API respects semantic versioning -->
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<configuration>
<oldVersion>1.0.0</oldVersion>
<analysisConfiguration>
<revapi.versions>
<enabled>true</enabled>
<onAllowed>
<criticality>documented</criticality>
</onAllowed>
</revapi.versions>
<revapi.differences>
<ignore>true</ignore>
<differences>
<item>
<regex>true</regex>
<code>java.class.externalClassExposedInAPI</code>
<newArchive>org\.eclipse\.leshan:leshan.*:.*</newArchive>
<justification>
Leshan sub-modules
implement the Leshan API which
makes them expose
Leshan-specific classes usually.
</justification>
</item>
</differences>
</revapi.differences>
<revapi.filter>
<elements>
<exclude>
<item>
<!-- Californium is exclude from
API check as it does not have clear definition of its API and do not really
respect Semantic versioning: https://github.com/eclipse/californium/issues/1159
https://github.com/eclipse/californium/issues/1166 -->
<matcher>java-package</matcher>
<match>/org\.eclipse\.californium(\..*)?/</match>
</item>
</exclude>
</elements>
</revapi.filter>
</analysisConfiguration>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Create OSGI bundle for Leshan libraries -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<_exportcontents>*</_exportcontents>
<Import-Package>*</Import-Package>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>