|
1 | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2 | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
3 | 3 | <modelVersion>4.0.0</modelVersion>
|
4 |
| - <groupId>com.destroystokyo.paper</groupId> |
5 |
| - <artifactId>paper</artifactId> |
| 4 | + <groupId>org.spigotmc</groupId> |
| 5 | + <artifactId>spigot</artifactId> |
6 | 6 | <packaging>jar</packaging>
|
7 | 7 | <version>1.10.2-R0.1-SNAPSHOT</version>
|
8 |
| - <name>Paper</name> |
9 |
| - <url>https://github.com/PaperMC/Paper</url> |
| 8 | + <name>Spigot</name> |
| 9 | + <url>http://www.spigotmc.org</url> |
10 | 10 |
|
11 | 11 | <properties>
|
12 | 12 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
15 | 15 | <minecraft_version>1_10_R1</minecraft_version>
|
16 | 16 | <buildtag.prefix>git-Bukkit-</buildtag.prefix>
|
17 | 17 | <buildtag.suffix></buildtag.suffix>
|
18 |
| - <!--Paper - Bump to 1.8 - This will haunt me --> |
19 | 18 | <maven.compiler.source>1.8</maven.compiler.source>
|
20 | 19 | <maven.compiler.target>1.8</maven.compiler.target>
|
21 | 20 | </properties>
|
22 | 21 |
|
23 | 22 | <parent>
|
24 |
| - <groupId>com.destroystokyo.paper</groupId> |
25 |
| - <artifactId>paper-parent</artifactId> |
| 23 | + <groupId>org.spigotmc</groupId> |
| 24 | + <artifactId>spigot-parent</artifactId> |
26 | 25 | <version>dev-SNAPSHOT</version>
|
27 | 26 | <relativePath>../pom.xml</relativePath>
|
28 | 27 | </parent>
|
29 | 28 |
|
30 | 29 | <dependencies>
|
31 | 30 | <dependency>
|
32 |
| - <groupId>com.destroystokyo.paper</groupId> |
33 |
| - <artifactId>paper-api</artifactId> |
| 31 | + <groupId>org.spigotmc</groupId> |
| 32 | + <artifactId>spigot-api</artifactId> |
34 | 33 | <version>${project.version}</version>
|
35 | 34 | <scope>compile</scope>
|
36 | 35 | </dependency>
|
|
64 | 63 | <version>5.1.37</version>
|
65 | 64 | <scope>compile</scope>
|
66 | 65 | </dependency>
|
67 |
| - <dependency> |
68 |
| - <groupId>co.aikar</groupId> |
69 |
| - <artifactId>fastutil-lite</artifactId> |
70 |
| - <version>1.0</version> |
71 |
| - <scope>compile</scope> |
72 |
| - </dependency> |
73 | 66 | <dependency>
|
74 | 67 | <groupId>net.sf.trove4j</groupId>
|
75 | 68 | <artifactId>trove4j</artifactId>
|
|
100 | 93 |
|
101 | 94 | <!-- This builds a completely 'ready to start' jar with all dependencies inside -->
|
102 | 95 | <build>
|
103 |
| - <finalName>paper-${minecraft.version}</finalName> |
104 |
| - <defaultGoal>clean install</defaultGoal> <!-- Paper --> |
105 | 96 | <plugins>
|
106 | 97 | <plugin>
|
107 |
| - <groupId>com.lukegb.mojo</groupId> |
108 |
| - <artifactId>gitdescribe-maven-plugin</artifactId> |
109 |
| - <version>1.3</version> |
110 |
| - <configuration> |
111 |
| - <outputPrefix>git-Paper-</outputPrefix> |
112 |
| - <scmDirectory>..</scmDirectory> |
113 |
| - </configuration> |
| 98 | + <groupId>net.md-5</groupId> |
| 99 | + <artifactId>scriptus</artifactId> |
| 100 | + <version>0.2</version> |
114 | 101 | <executions>
|
115 | 102 | <execution>
|
116 |
| - <phase>compile</phase> |
| 103 | + <id>ex-spigot</id> |
| 104 | + <configuration> |
| 105 | + <format>git-Spigot-%s</format> |
| 106 | + <scmDirectory>../</scmDirectory> |
| 107 | + <descriptionProperty>spigot.desc</descriptionProperty> |
| 108 | + </configuration> |
| 109 | + <phase>initialize</phase> |
| 110 | + <goals> |
| 111 | + <goal>describe</goal> |
| 112 | + </goals> |
| 113 | + </execution> |
| 114 | + <execution> |
| 115 | + <id>ex-craftbukkit</id> |
| 116 | + <configuration> |
| 117 | + <format>-%s</format> |
| 118 | + <scmDirectory>../../CraftBukkit</scmDirectory> |
| 119 | + <descriptionProperty>craftbukkit.desc</descriptionProperty> |
| 120 | + </configuration> |
| 121 | + <phase>initialize</phase> |
117 | 122 | <goals>
|
118 |
| - <goal>gitdescribe</goal> |
| 123 | + <goal>describe</goal> |
119 | 124 | </goals>
|
120 | 125 | </execution>
|
121 | 126 | </executions>
|
|
125 | 130 | <artifactId>maven-jar-plugin</artifactId>
|
126 | 131 | <version>2.6</version>
|
127 | 132 | <configuration>
|
128 |
| - <forceCreation>true</forceCreation> <!-- Required to prevent shading the jar multiple times --> |
129 | 133 | <archive>
|
130 | 134 | <manifestEntries>
|
131 | 135 | <Main-Class>org.bukkit.craftbukkit.Main</Main-Class>
|
132 | 136 | <Implementation-Title>CraftBukkit</Implementation-Title>
|
133 |
| - <Implementation-Version>${describe}</Implementation-Version> |
| 137 | + <Implementation-Version>${spigot.desc}${craftbukkit.desc}</Implementation-Version> |
134 | 138 | <Implementation-Vendor>Bukkit Team</Implementation-Vendor>
|
135 | 139 | <Specification-Title>Bukkit</Specification-Title>
|
136 | 140 | <Specification-Version>${api.version}</Specification-Version>
|
|
159 | 163 | </archive>
|
160 | 164 | </configuration>
|
161 | 165 | </plugin>
|
| 166 | + <plugin> |
| 167 | + <groupId>org.codehaus.mojo</groupId> |
| 168 | + <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 169 | + <version>1.14</version> |
| 170 | + <executions> |
| 171 | + <execution> |
| 172 | + <phase>process-classes</phase> |
| 173 | + <goals> |
| 174 | + <goal>check</goal> |
| 175 | + </goals> |
| 176 | + </execution> |
| 177 | + </executions> |
| 178 | + <configuration> |
| 179 | + <signature> |
| 180 | + <groupId>org.codehaus.mojo.signature</groupId> |
| 181 | + <artifactId>java18</artifactId> |
| 182 | + <version>1.0</version> |
| 183 | + </signature> |
| 184 | + </configuration> |
| 185 | + </plugin> |
162 | 186 | <plugin>
|
163 | 187 | <groupId>org.apache.maven.plugins</groupId>
|
164 | 188 | <artifactId>maven-shade-plugin</artifactId>
|
|
170 | 194 | <goal>shade</goal>
|
171 | 195 | </goals>
|
172 | 196 | <configuration>
|
173 |
| - <createDependencyReducedPom>false</createDependencyReducedPom> <!-- Paper --> |
174 | 197 | <relocations>
|
175 |
| - <!-- Paper - Workaround for hardcoded path lookup in dependency, easier than forking it - GH-189 --> |
176 |
| - <!--<relocation>--> |
177 |
| - <!--<pattern>joptsimple</pattern>--> |
178 |
| - <!--<shadedPattern>org.bukkit.craftbukkit.libs.joptsimple</shadedPattern>--> |
179 |
| - <!--</relocation>--> |
| 198 | + <relocation> |
| 199 | + <pattern>joptsimple</pattern> |
| 200 | + <shadedPattern>org.bukkit.craftbukkit.libs.joptsimple</shadedPattern> |
| 201 | + </relocation> |
180 | 202 | <relocation>
|
181 | 203 | <pattern>jline</pattern>
|
182 | 204 | <shadedPattern>org.bukkit.craftbukkit.libs.jline</shadedPattern>
|
|
210 | 232 | <artifactId>maven-compiler-plugin</artifactId>
|
211 | 233 | <!-- versions after this appear to be broken -->
|
212 | 234 | <version>3.1</version>
|
| 235 | + <configuration> |
| 236 | + <!-- we use the Eclipse compiler as it doesn't need a JDK --> |
| 237 | + <compilerId>eclipse</compilerId> |
| 238 | + <!-- source and target are ignored if this isn't true --> |
| 239 | + <optimize>true</optimize> |
| 240 | + </configuration> |
| 241 | + <dependencies> |
| 242 | + <!-- we need our custom version as it fixes some bugs on case sensitive file systems --> |
| 243 | + <dependency> |
| 244 | + <groupId>org.codehaus.plexus</groupId> |
| 245 | + <artifactId>plexus-compiler-eclipse</artifactId> |
| 246 | + <version>2.5.0-spigotmc</version> |
| 247 | + </dependency> |
| 248 | + </dependencies> |
213 | 249 | </plugin>
|
214 | 250 | <plugin>
|
215 | 251 | <groupId>org.apache.maven.plugins</groupId>
|
|
0 commit comments