-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
159 lines (136 loc) · 6.9 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
<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>me.exos9</groupId>
<!-- Change to your plugin name, must be lower cased and match your end package name. No spaces. -->
<artifactId>plugintemplatelight</artifactId>
<!-- Change to your plugin's name. Can contain capital letters, but do NOT use spaces. -->
<name>PluginTemplateLight</name>
<!-- Change to the appropriate plugin's version, starting at 1.0.0. -->
<version>1.0.0</version>
<!-- DO NOT EDIT. -->
<packaging>jar</packaging>
<properties>
<!-- Change to your name or the main project author. -->
<author>Exos9</author>
<!-- Change to the full path where your main plugin class is located. -->
<main.class>org.mineacademy.template.TechnicallyThisWorks</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 "11" or "17" then it will NOT load on servers
with previous Java versions. We recommend you stick with 1.8.
-->
<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.5.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>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<!-- DO NOT EDIT, used to pull Foundation from the JitPack site. -->
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- (Optional) Access the server jar for NMS (groupId, artifactId and version do not matter,
but keep version in artifactId and not in version if using multiple NMS imports,
otherwise Maven will fail to import them correctly).
NB: The <systemPath> is set to the "library" folder in your source folder (in the same parent
directory where you have "target" and will look for file patched_1.8.8.jar there as an example. -->
<!--<dependency>
<groupId>paper-server</groupId>
<artifactId>Paper-1.8.8</artifactId>
<version>1</version>
<scope>system</scope>
<systemPath>${project.basedir}/library/patched_1.8.8.jar</systemPath>
</dependency>-->
<!-- We do not need to import Spigot API since the latest version of it is made available through Foundation below.
If you want to code for another version, import it above Foundation as per https://www.spigotmc.org/wiki/spigot-maven/ -->
<!-- Use our Foundation library. It contains the latest Spigot API, you only need to import that if you build
for a different version. In that case, place your API above Foundation so Maven will prioritize it. -->
<dependency>
<groupId>${foundation.path}</groupId>
<artifactId>Foundation</artifactId>
<version>${foundation.version}</version>
</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.11.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>
<!-- Change version to the latest one from
https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-shade-plugin -->
<version>3.5.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>${foundation.path}:Foundation*</include>
</includes>
</artifactSet>
<relocations>
<!-- Move the Foundation library into your own package in "lib" subpackage to prevent interference. -->
<relocation>
<pattern>org.mineacademy.fo</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.lib</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>