|
42 | 42 | <properties> |
43 | 43 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
44 | 44 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
45 | | - <java.version>17</java.version> |
46 | | - <powermock.version>2.0.9</powermock.version> |
| 45 | + <java.version>21</java.version> |
| 46 | + <junit.version>5.10.2</junit.version> |
| 47 | + <mockito.version>5.11.0</mockito.version> |
47 | 48 | <!-- More visible way how to change dependency versions --> |
48 | | - <spigot.version>1.21.3-R0.1-SNAPSHOT</spigot.version> |
49 | | - <bentobox.version>2.7.1-SNAPSHOT</bentobox.version> |
| 49 | + <paper.version>1.21.10-R0.1-SNAPSHOT</paper.version> |
| 50 | + <bentobox.version>3.10.0</bentobox.version> |
50 | 51 | <!-- Revision variable removes warning about dynamic version --> |
51 | 52 | <revision>${build.version}-SNAPSHOT</revision> |
52 | 53 | <!-- This allows to change between versions and snapshots. --> |
53 | | - <build.version>4.5.1</build.version> |
| 54 | + <build.version>4.6.0</build.version> |
54 | 55 | <build.number>-LOCAL</build.number> |
55 | 56 | <!-- Sonar Cloud --> |
56 | 57 | <sonar.projectKey>BentoBoxWorld_Border</sonar.projectKey> |
|
102 | 103 |
|
103 | 104 | <repositories> |
104 | 105 | <repository> |
105 | | - <id>spigot-repo</id> |
106 | | - <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url> |
| 106 | + <id>jitpack.io</id> |
| 107 | + <url>https://jitpack.io</url> |
| 108 | + </repository> |
| 109 | + <repository> |
| 110 | + <id>papermc</id> |
| 111 | + <url>https://repo.papermc.io/repository/maven-public/</url> |
107 | 112 | </repository> |
108 | 113 | <repository> |
109 | 114 | <id>bentoboxworld</id> |
|
120 | 125 | </repositories> |
121 | 126 |
|
122 | 127 | <dependencies> |
123 | | - <!-- Mockito (Unit testing) This goes at the top to ensure the dependencies are accurate. --> |
124 | | - <!-- This is required for PowerMockito to work and must be placed before it --> |
125 | 128 | <dependency> |
126 | | - <groupId>org.javassist</groupId> |
127 | | - <artifactId>javassist</artifactId> |
128 | | - <version>3.30.2-GA</version> |
129 | | - </dependency> |
130 | | - <dependency> |
131 | | - <groupId>org.powermock</groupId> |
132 | | - <artifactId>powermock-module-junit4</artifactId> |
133 | | - <version>${powermock.version}</version> |
| 129 | + <groupId>com.github.MockBukkit</groupId> |
| 130 | + <artifactId>MockBukkit</artifactId> |
| 131 | + <version>v1.21-SNAPSHOT</version> |
134 | 132 | <scope>test</scope> |
135 | | - </dependency> |
| 133 | + </dependency> |
136 | 134 | <dependency> |
137 | | - <groupId>org.powermock</groupId> |
138 | | - <artifactId>powermock-api-mockito2</artifactId> |
139 | | - <version>${powermock.version}</version> |
140 | | - <scope>test</scope> |
| 135 | + <groupId>io.papermc.paper</groupId> |
| 136 | + <artifactId>paper-api</artifactId> |
| 137 | + <version>${paper.version}</version> |
| 138 | + <scope>provided</scope> |
141 | 139 | </dependency> |
| 140 | + |
| 141 | + <!-- Mockito (Unit testing) --> |
| 142 | + <dependency> |
| 143 | + <groupId>org.junit.jupiter</groupId> |
| 144 | + <artifactId>junit-jupiter-api</artifactId> |
| 145 | + <version>${junit.version}</version> |
| 146 | + <scope>test</scope> |
| 147 | + </dependency> |
| 148 | + <dependency> |
| 149 | + <groupId>org.junit.jupiter</groupId> |
| 150 | + <artifactId>junit-jupiter-engine</artifactId> |
| 151 | + <version>${junit.version}</version> |
| 152 | + <scope>test</scope> |
| 153 | + </dependency> |
| 154 | + <dependency> |
| 155 | + <groupId>org.mockito</groupId> |
| 156 | + <artifactId>mockito-junit-jupiter</artifactId> |
| 157 | + <version>${mockito.version}</version> |
| 158 | + <scope>test</scope> |
| 159 | + </dependency> |
142 | 160 | <dependency> |
143 | 161 | <groupId>org.mockito</groupId> |
144 | 162 | <artifactId>mockito-core</artifactId> |
145 | | - <version>3.11.1</version> |
| 163 | + <version>${mockito.version}</version> |
146 | 164 | <scope>test</scope> |
147 | 165 | </dependency> |
148 | 166 | <dependency> |
|
151 | 169 | <version>${bentobox.version}</version> |
152 | 170 | <scope>provided</scope> |
153 | 171 | </dependency> |
154 | | - <!-- Spigot API --> |
155 | | - <dependency> |
156 | | - <groupId>org.spigotmc</groupId> |
157 | | - <artifactId>spigot-api</artifactId> |
158 | | - <version>${spigot.version}</version> |
159 | | - <scope>provided</scope> |
160 | | - </dependency> |
161 | 172 | </dependencies> |
162 | 173 |
|
163 | 174 | <build> |
|
191 | 202 | <plugin> |
192 | 203 | <groupId>org.apache.maven.plugins</groupId> |
193 | 204 | <artifactId>maven-clean-plugin</artifactId> |
194 | | - <version>3.1.0</version> |
| 205 | + <version>3.5.0</version> |
195 | 206 | </plugin> |
196 | 207 | <plugin> |
197 | 208 | <groupId>org.apache.maven.plugins</groupId> |
198 | 209 | <artifactId>maven-compiler-plugin</artifactId> |
199 | | - <version>3.7.0</version> |
| 210 | + <version>3.14.1</version> |
200 | 211 | <configuration> |
201 | 212 | <release>${java.version}</release> |
202 | 213 | </configuration> |
203 | 214 | </plugin> |
204 | 215 | <plugin> |
205 | 216 | <groupId>org.apache.maven.plugins</groupId> |
206 | 217 | <artifactId>maven-surefire-plugin</artifactId> |
207 | | - <version>3.0.0-M5</version> |
| 218 | + <version>3.5.4</version> |
208 | 219 | <configuration> |
209 | 220 | <argLine> |
210 | 221 | ${argLine} |
|
241 | 252 | <plugin> |
242 | 253 | <groupId>org.apache.maven.plugins</groupId> |
243 | 254 | <artifactId>maven-jar-plugin</artifactId> |
244 | | - <version>3.1.0</version> |
| 255 | + <version>3.5.0</version> |
245 | 256 | </plugin> |
246 | 257 | <plugin> |
247 | 258 | <groupId>org.apache.maven.plugins</groupId> |
248 | 259 | <artifactId>maven-source-plugin</artifactId> |
249 | | - <version>3.0.1</version> |
| 260 | + <version>3.4.0</version> |
250 | 261 | <executions> |
251 | 262 | <execution> |
252 | 263 | <id>attach-sources</id> |
|
259 | 270 | <plugin> |
260 | 271 | <groupId>org.apache.maven.plugins</groupId> |
261 | 272 | <artifactId>maven-install-plugin</artifactId> |
262 | | - <version>2.5.2</version> |
| 273 | + <version>3.1.4</version> |
263 | 274 | </plugin> |
264 | 275 | <plugin> |
265 | 276 | <groupId>org.apache.maven.plugins</groupId> |
266 | 277 | <artifactId>maven-deploy-plugin</artifactId> |
267 | | - <version>2.8.2</version> |
| 278 | + <version>3.1.4</version> |
268 | 279 | </plugin> |
269 | 280 | <plugin> |
270 | 281 | <groupId>org.jacoco</groupId> |
271 | 282 | <artifactId>jacoco-maven-plugin</artifactId> |
272 | | - <version>0.8.10</version> |
| 283 | + <version>0.8.14</version> |
273 | 284 | <configuration> |
274 | 285 | <append>true</append> |
275 | 286 | <excludes> |
|
0 commit comments