|
69 | 69 | <sonar.projectKey>BentoBoxWorld_ControlPanel</sonar.projectKey> |
70 | 70 | <sonar.organization>bentobox-world</sonar.organization> |
71 | 71 | <sonar.host.url>https://sonarcloud.io</sonar.host.url> |
| 72 | + <!-- Test dependency versions --> |
| 73 | + <junit.version>5.10.2</junit.version> |
| 74 | + <mockito.version>5.11.0</mockito.version> |
72 | 75 | </properties> |
73 | 76 |
|
74 | 77 | <profiles> |
|
104 | 107 |
|
105 | 108 | <!-- Repositories contains links from were dependencies will be searched --> |
106 | 109 | <repositories> |
| 110 | + <!-- jitpack first so MockBukkit snapshots resolve without hitting other repos --> |
| 111 | + <repository> |
| 112 | + <id>jitpack.io</id> |
| 113 | + <url>https://jitpack.io</url> |
| 114 | + <snapshots> |
| 115 | + <enabled>true</enabled> |
| 116 | + </snapshots> |
| 117 | + </repository> |
107 | 118 | <repository> |
108 | 119 | <id>papermc</id> |
109 | 120 | <url>https://repo.papermc.io/repository/maven-public/</url> |
|
128 | 139 |
|
129 | 140 | <!-- Your addon must contain Paper and BentoBox APIs dependencies. --> |
130 | 141 | <dependencies> |
| 142 | + <dependency> |
| 143 | + <groupId>com.github.MockBukkit</groupId> |
| 144 | + <artifactId>MockBukkit</artifactId> |
| 145 | + <version>v1.21-SNAPSHOT</version> |
| 146 | + <scope>test</scope> |
| 147 | + </dependency> |
| 148 | + <dependency> |
| 149 | + <groupId>org.junit.jupiter</groupId> |
| 150 | + <artifactId>junit-jupiter-api</artifactId> |
| 151 | + <version>${junit.version}</version> |
| 152 | + <scope>test</scope> |
| 153 | + </dependency> |
| 154 | + <dependency> |
| 155 | + <groupId>org.junit.jupiter</groupId> |
| 156 | + <artifactId>junit-jupiter-engine</artifactId> |
| 157 | + <version>${junit.version}</version> |
| 158 | + <scope>test</scope> |
| 159 | + </dependency> |
| 160 | + <dependency> |
| 161 | + <groupId>org.mockito</groupId> |
| 162 | + <artifactId>mockito-junit-jupiter</artifactId> |
| 163 | + <version>${mockito.version}</version> |
| 164 | + <scope>test</scope> |
| 165 | + </dependency> |
| 166 | + <dependency> |
| 167 | + <groupId>org.mockito</groupId> |
| 168 | + <artifactId>mockito-core</artifactId> |
| 169 | + <version>${mockito.version}</version> |
| 170 | + <scope>test</scope> |
| 171 | + </dependency> |
131 | 172 | <dependency> |
132 | 173 | <groupId>io.papermc.paper</groupId> |
133 | 174 | <artifactId>paper-api</artifactId> |
|
221 | 262 | <plugin> |
222 | 263 | <groupId>org.apache.maven.plugins</groupId> |
223 | 264 | <artifactId>maven-surefire-plugin</artifactId> |
224 | | - <version>3.1.2</version> |
| 265 | + <version>3.5.4</version> |
225 | 266 | <!--suppress MavenModelInspection --> |
226 | 267 | <configuration> |
227 | 268 | <argLine> |
228 | 269 | ${argLine} |
| 270 | + -XX:+EnableDynamicAgentLoading |
229 | 271 | --add-opens java.base/java.lang=ALL-UNNAMED |
230 | 272 | --add-opens java.base/java.math=ALL-UNNAMED |
231 | 273 | --add-opens java.base/java.io=ALL-UNNAMED |
|
307 | 349 | <plugin> |
308 | 350 | <groupId>org.jacoco</groupId> |
309 | 351 | <artifactId>jacoco-maven-plugin</artifactId> |
310 | | - <version>0.8.10</version> |
| 352 | + <version>0.8.13</version> |
311 | 353 | <configuration> |
312 | 354 | <append>true</append> |
313 | 355 | <excludes> |
|
0 commit comments