-
Notifications
You must be signed in to change notification settings - Fork 219
/
pom.xml
172 lines (162 loc) · 7.22 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2021 Contributors to the Eclipse Foundation
~
~ See the NOTICE file(s) distributed with this work for additional
~ information regarding copyright ownership.
~
~ This program and the accompanying materials are made available under the
~ terms of the Eclipse Public License 2.0 which is available at
~ http://www.eclipse.org/legal/epl-2.0
~
~ SPDX-License-Identifier: EPL-2.0
-->
<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">
<parent>
<artifactId>ditto-things</artifactId>
<groupId>org.eclipse.ditto</groupId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ditto-things-model</artifactId>
<packaging>bundle</packaging>
<name>Eclipse Ditto :: Things :: Model</name>
<properties>
<javac.source>1.8</javac.source>
<javac.target>1.8</javac.target>
</properties>
<dependencies>
<!-- ### Compile ### -->
<dependency>
<groupId>org.eclipse.ditto</groupId>
<artifactId>ditto-base-model</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.ditto</groupId>
<artifactId>ditto-policies-model</artifactId>
</dependency>
<!-- ### Testing ### -->
<dependency>
<groupId>org.eclipse.ditto</groupId>
<artifactId>ditto-base-model</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
<configuration>
<includes>
<include>org/eclipse/ditto/things/model/assertions/*</include>
<include>org/eclipse/ditto/things/model/TestConstants*</include>
<include>org/eclipse/ditto/things/model/signals/commands/assertions/*</include>
<include>org/eclipse/ditto/things/model/signals/commands/TestConstants*</include>
<include>org/eclipse/ditto/things/model/signals/events/assertions/*</include>
<include>org/eclipse/ditto/things/model/signals/events/TestConstants*</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<ditto.limits.things.max-size>102400</ditto.limits.things.max-size> <!-- 100 KiB -->
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-banned-dependencies</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<!-- as this is a model and thus a minimal dependencies-rules applies,
we don't want to have a slf4j dependency -->
<exclude>org.slf4j</exclude>
</excludes>
<includes>
<include>org.slf4j:*:*:jar:test</include>
</includes>
</bannedDependencies>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package>
!org.eclipse.ditto.utils.jsr305.annotations,
org.eclipse.ditto.*
</Import-Package>
<Export-Package>
org.eclipse.ditto.things.model.*
</Export-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
<configuration>
<parameter>
<excludes>
<!-- Don't add excludes here before checking with the whole Ditto team -->
<!--<exclude></exclude>-->
<exclude>org.eclipse.ditto.things.model.signals.commands.ThingCommandSizeValidator#DITTO_LIMITS_THINGS_MAX_SIZE_BYTES</exclude>
<exclude>org.eclipse.ditto.things.model.signals.commands.ThingCommandResponse#getEntityId()</exclude>
<exclude>org.eclipse.ditto.things.model.Thing#getPolicyEntityId()</exclude> <!-- renamed to getPolicyId() -->
<exclude>org.eclipse.ditto.things.model.signals.commands.acks.ThingLiveCommandAckRequestSetter</exclude>
<exclude>org.eclipse.ditto.things.model.signals.commands.acks.ThingModifyCommandAckRequestSetter</exclude>
</excludes>
</parameter>
</configuration>
</plugin>
</plugins>
</build>
</project>