Skip to content

Commit 9aafbc8

Browse files
committed
Version 1.0.4
1 parent 7fbcda6 commit 9aafbc8

File tree

1 file changed

+40
-21
lines changed

1 file changed

+40
-21
lines changed

pom.xml

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5353
<java.version>21</java.version>
5454
<!-- Non-minecraft related dependencies -->
55-
<powermock.version>2.0.9</powermock.version>
55+
<junit.version>5.10.2</junit.version>
56+
<mockito.version>5.11.0</mockito.version>
57+
<mock-bukkit.version>v1.21-SNAPSHOT</mock-bukkit.version>
5658
<!-- More visible way how to change dependency versions -->
5759
<paper.version>1.21.10-R0.1-SNAPSHOT</paper.version>
5860
<bentobox.version>3.10.0-SNAPSHOT</bentobox.version>
@@ -61,7 +63,7 @@
6163
<!-- Do not change unless you want different name for local builds. -->
6264
<build.number>-LOCAL</build.number>
6365
<!-- This allows to change between versions. -->
64-
<build.version>1.0.3</build.version>
66+
<build.version>1.0.4</build.version>
6567
<sonar.organization>bentobox-world</sonar.organization>
6668
</properties>
6769

@@ -108,6 +110,10 @@
108110
</profiles>
109111

110112
<repositories>
113+
<repository>
114+
<id>jitpack.io</id>
115+
<url>https://jitpack.io</url>
116+
</repository>
111117
<repository>
112118
<id>papermc</id>
113119
<url>https://repo.papermc.io/repository/maven-public/</url>
@@ -136,32 +142,46 @@
136142
</repositories>
137143

138144
<dependencies>
139-
<!-- Paper API-->
145+
<!-- Mock Bukkit - used to mock the server in tests -->
140146
<dependency>
141-
<groupId>io.papermc.paper</groupId>
142-
<artifactId>paper-api</artifactId>
143-
<version>${paper.version}</version>
144-
<scope>provided</scope>
145-
</dependency>
146-
<!-- Mockito (Unit testing) -->
147+
<groupId>com.github.MockBukkit</groupId>
148+
<artifactId>MockBukkit</artifactId>
149+
<version>${mock-bukkit.version}</version>
150+
<scope>test</scope>
151+
</dependency>
152+
<!-- Mockito (Unit testing) This goes at the top to ensure the dependencies are accurate. -->
153+
<dependency>
154+
<groupId>org.junit.jupiter</groupId>
155+
<artifactId>junit-jupiter-api</artifactId>
156+
<version>${junit.version}</version>
157+
<scope>test</scope>
158+
</dependency>
159+
<dependency>
160+
<groupId>org.junit.jupiter</groupId>
161+
<artifactId>junit-jupiter-engine</artifactId>
162+
<version>${junit.version}</version>
163+
<scope>test</scope>
164+
</dependency>
165+
<dependency>
166+
<groupId>org.mockito</groupId>
167+
<artifactId>mockito-junit-jupiter</artifactId>
168+
<version>5.11.0</version>
169+
<scope>test</scope>
170+
</dependency>
147171
<dependency>
148172
<groupId>org.mockito</groupId>
149173
<artifactId>mockito-core</artifactId>
150-
<version>3.11.1</version>
151-
<scope>test</scope>
152-
</dependency>
153-
<dependency>
154-
<groupId>org.powermock</groupId>
155-
<artifactId>powermock-module-junit4</artifactId>
156-
<version>${powermock.version}</version>
174+
<version>${mockito.version}</version>
157175
<scope>test</scope>
158176
</dependency>
177+
<!-- Paper API-->
159178
<dependency>
160-
<groupId>org.powermock</groupId>
161-
<artifactId>powermock-api-mockito2</artifactId>
162-
<version>${powermock.version}</version>
163-
<scope>test</scope>
179+
<groupId>io.papermc.paper</groupId>
180+
<artifactId>paper-api</artifactId>
181+
<version>${paper.version}</version>
182+
<scope>provided</scope>
164183
</dependency>
184+
<!-- Mockito (Unit testing) -->
165185
<dependency>
166186
<groupId>world.bentobox</groupId>
167187
<artifactId>bentobox</artifactId>
@@ -246,7 +266,6 @@
246266
<!--suppress MavenModelInspection -->
247267
<configuration>
248268
<argLine>
249-
${argLine}
250269
--add-opens java.base/java.lang=ALL-UNNAMED
251270
--add-opens java.base/java.math=ALL-UNNAMED
252271
--add-opens java.base/java.io=ALL-UNNAMED

0 commit comments

Comments
 (0)