1
+ <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/maven-v4_0_0.xsd" >
2
+ <modelVersion >4.0.0</modelVersion >
3
+ <groupId >solarrabbit</groupId >
4
+ <artifactId >ColorBundles</artifactId >
5
+ <version >1.0</version >
6
+ <properties >
7
+ <maven .compiler.source>1.8</maven .compiler.source>
8
+ <maven .compiler.target>1.8</maven .compiler.target>
9
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
10
+ <junit .version>5.6.0</junit .version>
11
+ <maven-enforcer-plugin .version>3.0.0-M3</maven-enforcer-plugin .version>
12
+ <maven-checkstyle-plugin .version>3.1.0</maven-checkstyle-plugin .version>
13
+ <checkstyle .version>8.29</checkstyle .version>
14
+ <checkstyle-rules .version>4.0.1</checkstyle-rules .version>
15
+ <maven-surefire-plugin .version>3.0.0-M4</maven-surefire-plugin .version>
16
+ <jacoco-maven-plugin .version>0.8.6</jacoco-maven-plugin .version>
17
+ <maven-javadoc-plugin .version>3.0.0</maven-javadoc-plugin .version>
18
+ <coveralls-maven-plugin .version>4.3.0</coveralls-maven-plugin .version>
19
+ <!-- JaCoCo thresholds. Increase gradually as you add tests. -->
20
+ <jacoco .unit-tests.limit.instruction-ratio>0%</jacoco .unit-tests.limit.instruction-ratio>
21
+ <jacoco .unit-tests.limit.branch-ratio>0%</jacoco .unit-tests.limit.branch-ratio>
22
+ <jacoco .unit-tests.limit.class-complexity>20</jacoco .unit-tests.limit.class-complexity>
23
+ <jacoco .unit-tests.limit.method-complexity>5</jacoco .unit-tests.limit.method-complexity>
24
+ </properties >
25
+ <repositories >
26
+ <repository >
27
+ <id >spigot-repo</id >
28
+ <url >https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url >
29
+ </repository >
30
+ </repositories >
31
+ <dependencies >
32
+ <dependency >
33
+ <groupId >org.spigotmc</groupId >
34
+ <artifactId >spigot-api</artifactId >
35
+ <version >1.17-R0.1-SNAPSHOT</version >
36
+ <scope >provided</scope >
37
+ </dependency >
38
+ <dependency >
39
+ <groupId >org.junit.jupiter</groupId >
40
+ <artifactId >junit-jupiter-api</artifactId >
41
+ <version >${junit.version} </version >
42
+ <scope >test</scope >
43
+ </dependency >
44
+ <dependency >
45
+ <groupId >org.junit.jupiter</groupId >
46
+ <artifactId >junit-jupiter-engine</artifactId >
47
+ <version >${junit.version} </version >
48
+ <scope >test</scope >
49
+ </dependency >
50
+ </dependencies >
51
+ <build >
52
+ <finalName >${project.name} </finalName >
53
+ <plugins >
54
+ <plugin >
55
+ <groupId >org.apache.maven.plugins</groupId >
56
+ <artifactId >maven-enforcer-plugin</artifactId >
57
+ <version >${maven-enforcer-plugin.version} </version >
58
+ <executions >
59
+ <execution >
60
+ <goals >
61
+ <goal >enforce</goal >
62
+ </goals >
63
+ <configuration >
64
+ <rules >
65
+ <requireMavenVersion >
66
+ <version >3.6.3</version >
67
+ </requireMavenVersion >
68
+ </rules >
69
+ <fail >true</fail >
70
+ </configuration >
71
+ </execution >
72
+ </executions >
73
+ </plugin >
74
+ <plugin >
75
+ <groupId >org.apache.maven.plugins</groupId >
76
+ <artifactId >maven-surefire-plugin</artifactId >
77
+ <version >${maven-surefire-plugin.version} </version >
78
+ </plugin >
79
+ <plugin >
80
+ <groupId >org.jacoco</groupId >
81
+ <artifactId >jacoco-maven-plugin</artifactId >
82
+ <version >${jacoco-maven-plugin.version} </version >
83
+ <executions >
84
+ <execution >
85
+ <id >pre-unit-test</id >
86
+ <goals >
87
+ <goal >prepare-agent</goal >
88
+ </goals >
89
+ </execution >
90
+ <execution >
91
+ <id >post-unit-test</id >
92
+ <phase >test</phase >
93
+ <goals >
94
+ <goal >report</goal >
95
+ </goals >
96
+ </execution >
97
+ <execution >
98
+ <id >check-unit-test</id >
99
+ <phase >test</phase >
100
+ <goals >
101
+ <goal >check</goal >
102
+ </goals >
103
+ <configuration >
104
+ <dataFile >${project.build.directory} /jacoco.exec</dataFile >
105
+ <rules >
106
+ <rule >
107
+ <element >BUNDLE</element >
108
+ <limits >
109
+ <limit >
110
+ <counter >INSTRUCTION</counter >
111
+ <value >COVEREDRATIO</value >
112
+ <minimum >${jacoco.unit-tests.limit.instruction-ratio} </minimum >
113
+ </limit >
114
+ <limit >
115
+ <counter >BRANCH</counter >
116
+ <value >COVEREDRATIO</value >
117
+ <minimum >${jacoco.unit-tests.limit.branch-ratio} </minimum >
118
+ </limit >
119
+ </limits >
120
+ </rule >
121
+ <rule >
122
+ <element >CLASS</element >
123
+ <limits >
124
+ <limit >
125
+ <counter >COMPLEXITY</counter >
126
+ <value >TOTALCOUNT</value >
127
+ <maximum >${jacoco.unit-tests.limit.class-complexity} </maximum >
128
+ </limit >
129
+ </limits >
130
+ </rule >
131
+ <rule >
132
+ <element >METHOD</element >
133
+ <limits >
134
+ <limit >
135
+ <counter >COMPLEXITY</counter >
136
+ <value >TOTALCOUNT</value >
137
+ <maximum >${jacoco.unit-tests.limit.method-complexity} </maximum >
138
+ </limit >
139
+ </limits >
140
+ </rule >
141
+ </rules >
142
+ </configuration >
143
+ </execution >
144
+ </executions >
145
+ </plugin >
146
+ </plugins >
147
+ <resources >
148
+ <resource >
149
+ <directory >${project.basedir} /src/main/resources</directory >
150
+ <filtering >true</filtering >
151
+ <includes >
152
+ <include >plugin.yml</include >
153
+ <include >config.yml</include >
154
+ </includes >
155
+ </resource >
156
+ </resources >
157
+ </build >
158
+ <reporting >
159
+ <plugins >
160
+ <plugin >
161
+ <groupId >org.apache.maven.plugins</groupId >
162
+ <artifactId >maven-javadoc-plugin</artifactId >
163
+ <version >${maven-javadoc-plugin.version} </version >
164
+ </plugin >
165
+ </plugins >
166
+ </reporting >
167
+ <profiles >
168
+ <!-- Publish coverage report to Coveralls, only when running in Travis. -->
169
+ <profile >
170
+ <id >travis</id >
171
+ <activation >
172
+ <property >
173
+ <name >env.TRAVIS</name >
174
+ </property >
175
+ </activation >
176
+ <build >
177
+ <plugins >
178
+ <plugin >
179
+ <groupId >org.eluder.coveralls</groupId >
180
+ <artifactId >coveralls-maven-plugin</artifactId >
181
+ <version >${coveralls-maven-plugin.version} </version >
182
+ </plugin >
183
+ </plugins >
184
+ </build >
185
+ </profile >
186
+ <profile >
187
+ <id >conf</id >
188
+ <build >
189
+ <plugins >
190
+ <plugin >
191
+ <groupId >org.apache.maven.plugins</groupId >
192
+ <artifactId >maven-jar-plugin</artifactId >
193
+ <version >2.4</version >
194
+ <configuration >
195
+ <outputDirectory >${project.basedir} /../test_servers</outputDirectory >
196
+ </configuration >
197
+ </plugin >
198
+ </plugins >
199
+ </build >
200
+ </profile >
201
+ </profiles >
202
+ </project >
0 commit comments