1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!--
3+ Copyright 2024 Jorel Ali (Skepter) - MIT License
4+
5+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6+ this software and associated documentation files (the "Software"), to deal in
7+ the Software without restriction, including without limitation the rights to
8+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+ the Software, and to permit persons to whom the Software is furnished to do so,
10+ subject to the following conditions:
11+
12+ The above copyright notice and this permission notice shall be included in all
13+ copies or substantial portions of the Software.
14+
15+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21+ -->
22+
23+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
24+
25+ <parent >
26+ <artifactId >commandapi-bukkit-test</artifactId >
27+ <groupId >dev.jorel</groupId >
28+ <version >9.4.0-SNAPSHOT</version >
29+ </parent >
30+
31+ <modelVersion >4.0.0</modelVersion >
32+
33+ <artifactId >commandapi-bukkit-test-impl-1.20.5</artifactId >
34+
35+ <properties >
36+ <minecraft .mappings>1.20.5-R0.1-SNAPSHOT</minecraft .mappings>
37+ <spigot .version>1.20.5-R0.1-SNAPSHOT</spigot .version>
38+ <paper .version>1.20.4-R0.1-SNAPSHOT</paper .version>
39+ </properties >
40+
41+ <repositories >
42+ <repository >
43+ <!-- NBT API -->
44+ <id >codemc-repo-public</id >
45+ <url >https://repo.codemc.io/repository/maven-public/</url >
46+ <layout >default</layout >
47+ </repository >
48+ <repository >
49+ <id >codemc-repo</id >
50+ <url >https://repo.codemc.io/repository/nms/</url >
51+ <layout >default</layout >
52+ </repository >
53+ <repository >
54+ <id >spigot-repo</id >
55+ <url >https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url >
56+ </repository >
57+ <repository >
58+ <id >papermc</id >
59+ <url >https://repo.papermc.io/repository/maven-public/</url >
60+ </repository >
61+ <repository >
62+ <id >minecraft-libraries</id >
63+ <url >https://libraries.minecraft.net</url >
64+ </repository >
65+ </repositories >
66+
67+ <dependencies >
68+ <!-- Main dependencies -->
69+ <dependency >
70+ <groupId >org.junit.jupiter</groupId >
71+ <artifactId >junit-jupiter-engine</artifactId >
72+ <version >5.8.2</version >
73+ <scope >test</scope >
74+ </dependency >
75+ <dependency >
76+ <groupId >org.mockito</groupId >
77+ <artifactId >mockito-core</artifactId >
78+ <version >5.11.0</version >
79+ </dependency >
80+ <dependency >
81+ <!-- This is literally just for testing, we're not actually packaging this -->
82+ <groupId >de.tr7zw</groupId >
83+ <artifactId >item-nbt-api</artifactId >
84+ <version >2.11.2</version >
85+ <scope >provided</scope >
86+ </dependency >
87+ <dependency >
88+ <groupId >com.mojang</groupId >
89+ <artifactId >brigadier</artifactId >
90+ <version >1.2.9</version >
91+ <scope >provided</scope >
92+ </dependency >
93+ <dependency >
94+ <groupId >dev.jorel</groupId >
95+ <artifactId >commandapi-bukkit-test-impl</artifactId >
96+ <version >${project.version} </version >
97+ </dependency >
98+ <dependency >
99+ <groupId >dev.jorel</groupId >
100+ <artifactId >commandapi-bukkit-shade</artifactId >
101+ <version >${project.version} </version >
102+ </dependency >
103+
104+ <!-- Version-specific dependencies -->
105+ <dependency >
106+ <groupId >org.spigotmc</groupId >
107+ <artifactId >spigot</artifactId >
108+ <version >${spigot.version} </version >
109+ <classifier >remapped-mojang</classifier >
110+ <scope >provided</scope >
111+ </dependency >
112+ <dependency >
113+ <groupId >com.github.seeseemelk</groupId >
114+ <artifactId >MockBukkit-v1.20</artifactId >
115+ <version >3.9.0</version >
116+ </dependency >
117+ <!-- <dependency>
118+ <groupId>io.papermc.paper</groupId>
119+ <artifactId>paper-api</artifactId>
120+ <version>${paper.version}</version>
121+ </dependency> -->
122+ </dependencies >
123+
124+ <build >
125+ <plugins >
126+ <!-- Generate Mojang mapped jar -->
127+ <plugin >
128+ <groupId >org.apache.maven.plugins</groupId >
129+ <artifactId >maven-jar-plugin</artifactId >
130+ <executions >
131+ <execution >
132+ <id >Mojang-Mapped</id >
133+ <goals >
134+ <goal >jar</goal >
135+ </goals >
136+ <configuration >
137+ <classifier >mojang-mapped</classifier >
138+ </configuration >
139+ </execution >
140+ </executions >
141+ </plugin >
142+ <!-- Generate Spigot mapped jar -->
143+ <plugin >
144+ <groupId >net.md-5</groupId >
145+ <artifactId >specialsource-maven-plugin</artifactId >
146+ <version >2.0.2</version >
147+ <executions >
148+ <execution >
149+ <phase >package</phase >
150+ <goals >
151+ <goal >remap</goal >
152+ </goals >
153+ <id >remap-obf</id >
154+ <configuration >
155+ <srgIn >org.spigotmc:minecraft-server:${minecraft.mappings} :txt:maps-mojang</srgIn >
156+ <reverse >true</reverse >
157+ <remappedDependencies >org.spigotmc:spigot:${minecraft.mappings} :jar:remapped-mojang</remappedDependencies >
158+ <remappedArtifactAttached >true</remappedArtifactAttached >
159+ <remappedClassifierName >remapped-obf</remappedClassifierName >
160+ </configuration >
161+ </execution >
162+ <execution >
163+ <phase >package</phase >
164+ <goals >
165+ <goal >remap</goal >
166+ </goals >
167+ <id >remap-spigot</id >
168+ <configuration >
169+ <inputFile >${project.build.directory} /${project.artifactId} -${project.version} -remapped-obf.jar</inputFile >
170+ <srgIn >org.spigotmc:minecraft-server:${minecraft.mappings} :csrg:maps-spigot</srgIn >
171+ <remappedDependencies >org.spigotmc:spigot:${minecraft.mappings} :jar:remapped-obf</remappedDependencies >
172+ </configuration >
173+ </execution >
174+ </executions >
175+ </plugin >
176+ <!-- Allow code coverage -->
177+ <plugin >
178+ <groupId >org.jacoco</groupId >
179+ <artifactId >jacoco-maven-plugin</artifactId >
180+ <executions >
181+ <execution >
182+ <id >default-prepare-agent</id >
183+ <goals >
184+ <goal >prepare-agent</goal >
185+ </goals >
186+ </execution >
187+ <execution >
188+ <id >report</id >
189+ <phase >verify</phase >
190+ <goals >
191+ <goal >report</goal >
192+ </goals >
193+ </execution >
194+ </executions >
195+ </plugin >
196+ </plugins >
197+ </build >
198+ </project >
0 commit comments