-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
228 lines (204 loc) · 10 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Change to your own main package name. -->
<groupId>net.bytebond</groupId>
<!-- Change to your plugin name, must be lower cased and match your end package name. No spaces. -->
<artifactId>core</artifactId>
<!-- Change to your plugin's name. Can contain capital letters, but do NOT use spaces. -->
<name>Core</name>
<!-- Change to the appropriate plugin's version, starting at 1.0.0. -->
<version>0.9.8-RELEASE</version>
<!-- DO NOT EDIT. -->
<packaging>jar</packaging>
<properties>
<!-- Change to your name or the main project author. -->
<author>notmyidea</author>
<!-- Change to the full path where your main plugin class is located. -->
<main.class>net.bytebond.core.Core</main.class>
<!-- Change the Java version this plugin is built on.
IMPORTANT: For Java 8, version is "1.8", for Java 11+ it is only "11" or "17".
If you use 1.8 then your plugin will work on newer versions, but if you
use 17 then it will NOT load on servers with previous Java versions.
-->
<java.version>1.8</java.version>
<!-- Change to the latest version from https://github.com/kangarko/Foundation/releases
or change to "LATEST" if you downloaded Foundation to your disk and compiled it. -->
<foundation.version>6.7.8</foundation.version>
<!-- Leave on "com.github.kangarko" if you use Foundation from GitHub like most people,
or change to "org.mineacademy" if you downloaded our library to your disk and compiled it. -->
<foundation.path>com.github.kangarko</foundation.path>
<!-- DO NOT EDIT. -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<!-- DO NOT EDIT, used to download Foundation from GitHub using JitPack tool. -->
<repository>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>MG-Dev Jenkins CI Maven Repository</id>
<url>https://ci.mg-dev.eu/plugin/repository/everything</url>
</repository>
<repository>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<!-- CodeMC -->
<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.io/repository/maven-public/</url>
<layout>default</layout>
</repository>
<repository>
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
<repository>
<id>MikeRepo</id>
<url>https://repo.mikeprimm.com/</url>
</repository>
</repositories>
<dependencies>
<!-- (Optional) Access the server jar for NMS (groupId, artifactId and version do not matter,
but keep the artifactId unique if using multiple NMS imports).
NB: Here, the <systemPath> is set to the "library" folder in your source folder (in the same
parent directory where you have "target" we will look for patched_1.8.8.jar file -->
<!--<dependency>
<groupId>paper-server</groupId>
<artifactId>Paper-1.20</artifactId>
<version>1</version>
<scope>system</scope>
<systemPath>${project.basedir}/library/patched_1.20.jar</systemPath>
</dependency>-->
<!-- No need to import Spigot/Paper API since Foundation includes latest Spigot API. If you need
to code for another version or want to use Paper API, place it here (above Foundation) as per
https://github.com/PaperMC/Paper?tab=readme-ov-file#maven -->
<!--<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.20.6-R0.1-SNAPSHOT</version>
</dependency>-->
<!-- The Foundation library. It contains the latest Spigot API and a ton of useful dependencies
Please see the maven-shade-plugin below and configure inclusions properly otherwise
your file will shade with all the dependencies resulting it crashes and huge file size. -->
<dependency>
<groupId>${foundation.path}</groupId>
<artifactId>Foundation</artifactId>
<version>${foundation.version}</version>
</dependency>
<dependency>
<groupId>us.dynmap</groupId>
<artifactId>dynmap-api</artifactId>
<version>3.4-beta-3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.bergerkiller.bukkit</groupId>
<artifactId>BKCommonLib</artifactId>
<version>1.20.4-v1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.tr7zw</groupId>
<artifactId>item-nbt-api-plugin</artifactId>
<version>2.12.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.5</version>
<scope>provided</scope>
</dependency>
<!-- There was an issue with UltraEconomy, see a dm from one of their maintainers:
"It seems that whoever built (or i guess manually copied classes together for) the api put the XMaterial class into the wrong package.
I guess the only solution for now would be if you tried to compile (and code) against the actual plugin jar insted of the api"
-->
<dependency>
<groupId>com.github.MilkBowl</groupId>
<artifactId>VaultAPI</artifactId>
<version>1.7</version>
<scope>provided</scope>
</dependency>
</dependencies>
<!-- DO NOT EDIT unless instructed to do so or you know what you're doing. -->
<build>
<finalName>${project.name}-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<!-- Change version to the latest one from
https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin -->
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<!-- Change version to the latest one from
https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
<version>3.13.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>${foundation.path}:Foundation*</include>
<include>com.bergerkiller.bukkit:BKCommonLib*</include>
<include>net.thenextlvl.holograms*</include>
<!-- Include UltraEconomyAPI in the shaded JAR -->
<!-- <include>me.TechsCode:UltraEconomyAPI</include> -->
<!-- Include item-nbt-api-plugin in the shaded JAR -->
<include>de.tr7zw:item-nbt-api-plugin</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.mineacademy.fo</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
</relocation>
<!-- Relocate UltraEconomyAPI to prevent potential conflicts -->
<!-- UltraEconomyAPI is currently reworking.
The API is not supposed to be shaded into the plugin,
doing so will result in countless null pointers -->
<!--<relocation>
<pattern>me.TechsCode.UltraEconomyAPI</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
</relocation> -->
<!-- Relocate item-nbt-api-plugin to prevent potential conflicts -->
<relocation>
<pattern>de.tr7zw.itemnbtapi</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
</plugins>
<!-- Replaces ${project.name} and other variables in src/main/resources. -->
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>