|
56 | 56 | <!-- Some JAVA encoding settings -->
|
57 | 57 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
58 | 58 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
59 |
| - <java.version>1.8</java.version> |
| 59 | + <java.version>17</java.version> |
60 | 60 |
|
61 | 61 | <!-- SPIGOT API version -->
|
62 |
| - <spigot.version>1.15.2-R0.1-SNAPSHOT</spigot.version> |
| 62 | + <spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version> |
63 | 63 |
|
64 | 64 | <!-- BentoBox API version -->
|
65 |
| - <bentobox.version>1.14.0</bentobox.version> |
| 65 | + <bentobox.version>2.0.0-SNAPSHOT</bentobox.version> |
66 | 66 |
|
67 | 67 | <!-- Revision variable removes warning about dynamic version -->
|
68 | 68 | <revision>${build.version}-SNAPSHOT</revision>
|
69 | 69 | <!-- This allows to change between versions and snapshots. -->
|
70 |
| - <build.version>1.13.0</build.version> |
| 70 | + <build.version>1.13.1</build.version> |
71 | 71 | <build.number>-LOCAL</build.number>
|
72 | 72 | <!-- Sonar Cloud -->
|
73 | 73 | <sonar.projectKey>BentoBoxWorld_ControlPanel</sonar.projectKey>
|
|
152 | 152 | <!-- Build contains information for maven. It allows to create correct
|
153 | 153 | jar file. -->
|
154 | 154 | <build>
|
| 155 | + <!-- By default ${revision} is ${build.version}-SNAPSHOT --> |
| 156 | + <!-- If GIT_BRANCH variable is set to origin/master, then it will |
| 157 | + be only ${build.version}. --> |
| 158 | + |
| 159 | + <!-- By default ${build.number} is -LOCAL. --> |
| 160 | + <!-- If the BUILD_NUMBER variable is set, then it will be -b[number]. --> |
| 161 | + <!-- If GIT_BRANCH variable is set to origin/master, then it will |
| 162 | + be the empty string. --> |
155 | 163 | <finalName>${project.name}-${revision}${build.number}</finalName>
|
156 | 164 |
|
157 | 165 | <defaultGoal>clean package</defaultGoal>
|
| 166 | + |
158 | 167 | <resources>
|
159 | 168 | <resource>
|
160 | 169 | <directory>src/main/resources</directory>
|
|
166 | 175 | <filtering>false</filtering>
|
167 | 176 | <includes>
|
168 | 177 | <include>*.yml</include>
|
| 178 | + </includes> |
| 179 | + </resource> |
| 180 | + <resource> |
| 181 | + <directory>src/main/resources/blueprints</directory> |
| 182 | + <targetPath>./blueprints</targetPath> |
| 183 | + <filtering>false</filtering> |
| 184 | + <includes> |
| 185 | + <include>*.blu</include> |
169 | 186 | <include>*.json</include>
|
170 | 187 | </includes>
|
171 | 188 | </resource>
|
|
180 | 197 | <groupId>org.apache.maven.plugins</groupId>
|
181 | 198 | <artifactId>maven-resources-plugin</artifactId>
|
182 | 199 | <version>3.1.0</version>
|
| 200 | + <configuration> |
| 201 | + <nonFilteredFileExtensions> |
| 202 | + <nonFilteredFileExtension>blu</nonFilteredFileExtension> |
| 203 | + </nonFilteredFileExtensions> |
| 204 | + </configuration> |
183 | 205 | </plugin>
|
184 | 206 | <plugin>
|
185 | 207 | <groupId>org.apache.maven.plugins</groupId>
|
186 | 208 | <artifactId>maven-compiler-plugin</artifactId>
|
187 |
| - <version>3.7.0</version> |
| 209 | + <version>3.8.1</version> |
188 | 210 | <configuration>
|
189 |
| - <source>${java.version}</source> |
190 |
| - <target>${java.version}</target> |
| 211 | + <release>${java.version}</release> |
191 | 212 | </configuration>
|
192 | 213 | </plugin>
|
193 | 214 | <plugin>
|
194 | 215 | <groupId>org.apache.maven.plugins</groupId>
|
195 | 216 | <artifactId>maven-surefire-plugin</artifactId>
|
196 |
| - <version>2.22.0</version> |
| 217 | + <version>3.1.2</version> |
| 218 | + <!--suppress MavenModelInspection --> |
| 219 | + <configuration> |
| 220 | + <argLine> |
| 221 | + ${argLine} |
| 222 | + --add-opens java.base/java.lang=ALL-UNNAMED |
| 223 | + --add-opens java.base/java.math=ALL-UNNAMED |
| 224 | + --add-opens java.base/java.io=ALL-UNNAMED |
| 225 | + --add-opens java.base/java.util=ALL-UNNAMED |
| 226 | + --add-opens |
| 227 | + java.base/java.util.stream=ALL-UNNAMED |
| 228 | + --add-opens java.base/java.text=ALL-UNNAMED |
| 229 | + --add-opens |
| 230 | + java.base/java.util.regex=ALL-UNNAMED |
| 231 | + --add-opens |
| 232 | + java.base/java.nio.channels.spi=ALL-UNNAMED |
| 233 | + --add-opens java.base/sun.nio.ch=ALL-UNNAMED |
| 234 | + --add-opens java.base/java.net=ALL-UNNAMED |
| 235 | + --add-opens |
| 236 | + java.base/java.util.concurrent=ALL-UNNAMED |
| 237 | + --add-opens java.base/sun.nio.fs=ALL-UNNAMED |
| 238 | + --add-opens java.base/sun.nio.cs=ALL-UNNAMED |
| 239 | + --add-opens java.base/java.nio.file=ALL-UNNAMED |
| 240 | + --add-opens |
| 241 | + java.base/java.nio.charset=ALL-UNNAMED |
| 242 | + --add-opens |
| 243 | + java.base/java.lang.reflect=ALL-UNNAMED |
| 244 | + --add-opens |
| 245 | + java.logging/java.util.logging=ALL-UNNAMED |
| 246 | + --add-opens java.base/java.lang.ref=ALL-UNNAMED |
| 247 | + --add-opens java.base/java.util.jar=ALL-UNNAMED |
| 248 | + --add-opens java.base/java.util.zip=ALL-UNNAMED |
| 249 | + </argLine> |
| 250 | + </configuration> |
197 | 251 | </plugin>
|
198 | 252 | <plugin>
|
199 | 253 | <groupId>org.apache.maven.plugins</groupId>
|
|
203 | 257 | <plugin>
|
204 | 258 | <groupId>org.apache.maven.plugins</groupId>
|
205 | 259 | <artifactId>maven-javadoc-plugin</artifactId>
|
206 |
| - <version>3.0.1</version> |
| 260 | + <version>3.3.0</version> |
207 | 261 | <configuration>
|
208 |
| - <show>public</show> |
209 | 262 | <failOnError>false</failOnError>
|
210 | 263 | <additionalJOption>-Xdoclint:none</additionalJOption>
|
| 264 | + <!-- To compile with Java 11, this tag may be required --> |
| 265 | + <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> |
211 | 266 | </configuration>
|
212 | 267 | <executions>
|
213 | 268 | <execution>
|
214 | 269 | <id>attach-javadocs</id>
|
| 270 | + <phase>install</phase> |
215 | 271 | <goals>
|
216 | 272 | <goal>jar</goal>
|
217 | 273 | </goals>
|
|
233 | 289 | </plugin>
|
234 | 290 | <plugin>
|
235 | 291 | <groupId>org.apache.maven.plugins</groupId>
|
236 |
| - <artifactId>maven-shade-plugin</artifactId> |
237 |
| - <version>3.1.1</version> |
| 292 | + <artifactId>maven-install-plugin</artifactId> |
| 293 | + <version>2.5.2</version> |
| 294 | + </plugin> |
| 295 | + <plugin> |
| 296 | + <groupId>org.apache.maven.plugins</groupId> |
| 297 | + <artifactId>maven-deploy-plugin</artifactId> |
| 298 | + <version>2.8.2</version> |
| 299 | + </plugin> |
| 300 | + <plugin> |
| 301 | + <groupId>org.jacoco</groupId> |
| 302 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 303 | + <version>0.8.10</version> |
238 | 304 | <configuration>
|
239 |
| - <minimizeJar>true</minimizeJar> |
| 305 | + <append>true</append> |
| 306 | + <excludes> |
| 307 | + <!-- This is required to prevent Jacoco from adding |
| 308 | + synthetic fields to a JavaBean class (causes errors in testing) --> |
| 309 | + <exclude>**/*Names*</exclude> |
| 310 | + <!-- Prevents the Material is too large to mock error --> |
| 311 | + <exclude>org/bukkit/Material*</exclude> |
| 312 | + </excludes> |
240 | 313 | </configuration>
|
241 | 314 | <executions>
|
242 | 315 | <execution>
|
243 |
| - <phase>package</phase> |
| 316 | + <id>prepare-agent</id> |
| 317 | + <goals> |
| 318 | + <goal>prepare-agent</goal> |
| 319 | + </goals> |
| 320 | + </execution> |
| 321 | + <execution> |
| 322 | + <id>report</id> |
244 | 323 | <goals>
|
245 |
| - <goal>shade</goal> |
| 324 | + <goal>report</goal> |
246 | 325 | </goals>
|
| 326 | + <configuration> |
| 327 | + <formats> |
| 328 | + <format>XML</format> |
| 329 | + </formats> |
| 330 | + </configuration> |
247 | 331 | </execution>
|
248 | 332 | </executions>
|
249 | 333 | </plugin>
|
250 |
| - <plugin> |
251 |
| - <groupId>org.apache.maven.plugins</groupId> |
252 |
| - <artifactId>maven-install-plugin</artifactId> |
253 |
| - <version>2.5.2</version> |
254 |
| - </plugin> |
255 | 334 | </plugins>
|
256 | 335 | </build>
|
257 | 336 |
|
|
0 commit comments