|
52 | 52 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
53 | 53 | <java.version>21</java.version> |
54 | 54 | <!-- 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> |
56 | 58 | <!-- More visible way how to change dependency versions --> |
57 | 59 | <paper.version>1.21.10-R0.1-SNAPSHOT</paper.version> |
58 | 60 | <bentobox.version>3.10.0-SNAPSHOT</bentobox.version> |
|
61 | 63 | <!-- Do not change unless you want different name for local builds. --> |
62 | 64 | <build.number>-LOCAL</build.number> |
63 | 65 | <!-- This allows to change between versions. --> |
64 | | - <build.version>1.0.3</build.version> |
| 66 | + <build.version>1.0.4</build.version> |
65 | 67 | <sonar.organization>bentobox-world</sonar.organization> |
66 | 68 | </properties> |
67 | 69 |
|
|
108 | 110 | </profiles> |
109 | 111 |
|
110 | 112 | <repositories> |
| 113 | + <repository> |
| 114 | + <id>jitpack.io</id> |
| 115 | + <url>https://jitpack.io</url> |
| 116 | + </repository> |
111 | 117 | <repository> |
112 | 118 | <id>papermc</id> |
113 | 119 | <url>https://repo.papermc.io/repository/maven-public/</url> |
|
136 | 142 | </repositories> |
137 | 143 |
|
138 | 144 | <dependencies> |
139 | | - <!-- Paper API--> |
| 145 | + <!-- Mock Bukkit - used to mock the server in tests --> |
140 | 146 | <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> |
147 | 171 | <dependency> |
148 | 172 | <groupId>org.mockito</groupId> |
149 | 173 | <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> |
157 | 175 | <scope>test</scope> |
158 | 176 | </dependency> |
| 177 | + <!-- Paper API--> |
159 | 178 | <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> |
164 | 183 | </dependency> |
| 184 | + <!-- Mockito (Unit testing) --> |
165 | 185 | <dependency> |
166 | 186 | <groupId>world.bentobox</groupId> |
167 | 187 | <artifactId>bentobox</artifactId> |
|
246 | 266 | <!--suppress MavenModelInspection --> |
247 | 267 | <configuration> |
248 | 268 | <argLine> |
249 | | - ${argLine} |
250 | 269 | --add-opens java.base/java.lang=ALL-UNNAMED |
251 | 270 | --add-opens java.base/java.math=ALL-UNNAMED |
252 | 271 | --add-opens java.base/java.io=ALL-UNNAMED |
|
0 commit comments