Skip to content

Commit 6c7d3a5

Browse files
Fix maven-shade-plugin
1 parent f050430 commit 6c7d3a5

File tree

1 file changed

+47
-53
lines changed

1 file changed

+47
-53
lines changed

pom.xml

+47-53
Original file line numberDiff line numberDiff line change
@@ -140,43 +140,6 @@
140140
<encoding>${project.build.sourceEncoding}</encoding>
141141
</configuration>
142142
</plugin>
143-
<!-- Shade all Libs -->
144-
<plugin>
145-
<groupId>org.apache.maven.plugins</groupId>
146-
<artifactId>maven-shade-plugin</artifactId>
147-
<version>3.3.2-SNAPSHOT</version>
148-
<executions>
149-
<execution>
150-
<phase>package</phase>
151-
<goals>
152-
<goal>shade</goal>
153-
</goals>
154-
<configuration>
155-
<minimizeJar>true</minimizeJar>
156-
<createDependencyReducedPom>false</createDependencyReducedPom>
157-
<artifactSet>
158-
<includes>
159-
<include>io.papermc:paperlib</include>
160-
</includes>
161-
</artifactSet>
162-
<relocations>
163-
<relocation>
164-
<pattern>io.papermc:lib</pattern>
165-
<shadedPattern>lib:paperlib</shadedPattern>
166-
</relocation>
167-
</relocations>
168-
<filters>
169-
<filter>
170-
<artifact>*:*</artifact>
171-
<excludes>
172-
<exclude>META-INF/MANIFEST.MF</exclude>
173-
</excludes>
174-
</filter>
175-
</filters>
176-
</configuration>
177-
</execution>
178-
</executions>
179-
</plugin>
180143
<!-- Manifest generation for database conversion tool -->
181144
<plugin>
182145
<groupId>org.apache.maven.plugins</groupId>
@@ -192,6 +155,36 @@
192155
</archive>
193156
</configuration>
194157
</plugin>
158+
<!-- Shade PaperLib -->
159+
<plugin>
160+
<groupId>org.apache.maven.plugins</groupId>
161+
<artifactId>maven-shade-plugin</artifactId>
162+
<version>3.4.2-SNAPSHOT</version>
163+
<configuration>
164+
<transformers>
165+
<transformer
166+
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
167+
<mainClass>me.eccentric_nz.TARDIS.database.tool.Main</mainClass>
168+
</transformer>
169+
</transformers>
170+
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml
171+
</dependencyReducedPomLocation>
172+
<relocations>
173+
<relocation>
174+
<pattern>io.papermc.lib</pattern>
175+
<shadedPattern>me.eccentric_nz.paperlib</shadedPattern>
176+
</relocation>
177+
</relocations>
178+
</configuration>
179+
<executions>
180+
<execution>
181+
<phase>package</phase>
182+
<goals>
183+
<goal>shade</goal>
184+
</goals>
185+
</execution>
186+
</executions>
187+
</plugin>
195188
</plugins>
196189
</build>
197190
<dependencies>
@@ -200,7 +193,7 @@
200193
<artifactId>spigot-api</artifactId>
201194
<version>1.19.3-R0.1-SNAPSHOT</version>
202195
<type>jar</type>
203-
<scope>compile</scope>
196+
<scope>provided</scope>
204197
</dependency>
205198
<dependency>
206199
<groupId>io.papermc</groupId>
@@ -219,7 +212,7 @@
219212
<artifactId>TARDISChunkGenerator</artifactId>
220213
<version>4.14.0</version>
221214
<type>jar</type>
222-
<scope>compile</scope>
215+
<scope>provided</scope>
223216
<exclusions>
224217
<exclusion>
225218
<groupId>*</groupId>
@@ -232,7 +225,7 @@
232225
<artifactId>TARDISWeepingAngels</artifactId>
233226
<version>4.1.1</version>
234227
<type>jar</type>
235-
<scope>compile</scope>
228+
<scope>provided</scope>
236229
<exclusions>
237230
<exclusion>
238231
<groupId>*</groupId>
@@ -245,7 +238,7 @@
245238
<artifactId>worldguard-bukkit</artifactId>
246239
<version>7.0.8-SNAPSHOT</version>
247240
<type>jar</type>
248-
<scope>compile</scope>
241+
<scope>provided</scope>
249242
<exclusions>
250243
<exclusion>
251244
<groupId>com.sk89q.worldguard.worldguard-libs</groupId>
@@ -270,7 +263,7 @@
270263
<artifactId>worldedit-bukkit</artifactId>
271264
<version>7.2.14-SNAPSHOT</version>
272265
<type>jar</type>
273-
<scope>compile</scope>
266+
<scope>provided</scope>
274267
<exclusions>
275268
<exclusion>
276269
<groupId>com.sk89q.worldedit.worldedit-libs</groupId>
@@ -327,7 +320,7 @@
327320
<artifactId>Multiverse-Core</artifactId>
328321
<version>4.3.2-SNAPSHOT</version>
329322
<type>jar</type>
330-
<scope>compile</scope>
323+
<scope>provided</scope>
331324
<exclusions>
332325
<exclusion>
333326
<groupId>*</groupId>
@@ -340,7 +333,7 @@
340333
<artifactId>Multiverse-Inventories</artifactId>
341334
<version>4.2.4-SNAPSHOT</version>
342335
<type>jar</type>
343-
<scope>compile</scope>
336+
<scope>provided</scope>
344337
<exclusions>
345338
<exclusion>
346339
<groupId>*</groupId>
@@ -369,7 +362,7 @@
369362
<artifactId>blocklocker</artifactId>
370363
<version>1.10.4</version>
371364
<type>jar</type>
372-
<scope>compile</scope>
365+
<scope>provided</scope>
373366
<exclusions>
374367
<exclusion>
375368
<groupId>*</groupId>
@@ -382,7 +375,7 @@
382375
<artifactId>LWCX</artifactId>
383376
<version>2.2.8</version>
384377
<type>jar</type>
385-
<scope>compile</scope>
378+
<scope>provided</scope>
386379
<exclusions>
387380
<exclusion>
388381
<groupId>*</groupId>
@@ -396,7 +389,7 @@
396389
<artifactId>ProtocolLib</artifactId>
397390
<version>5.0.0-SNAPSHOT</version>
398391
<type>jar</type>
399-
<scope>compile</scope>
392+
<scope>provided</scope>
400393
<exclusions>
401394
<exclusion>
402395
<groupId>*</groupId>
@@ -409,7 +402,7 @@
409402
<artifactId>LibsDisguises</artifactId>
410403
<version>10.0.32-SNAPSHOT</version>
411404
<type>jar</type>
412-
<scope>compile</scope>
405+
<scope>provided</scope>
413406
<exclusions>
414407
<exclusion>
415408
<groupId>*</groupId>
@@ -422,7 +415,7 @@
422415
<artifactId>EssentialsX</artifactId>
423416
<version>2.20.0-SNAPSHOT</version>
424417
<type>jar</type>
425-
<scope>compile</scope>
418+
<scope>provided</scope>
426419
<exclusions>
427420
<exclusion>
428421
<groupId>*</groupId>
@@ -435,7 +428,7 @@
435428
<artifactId>placeholderapi</artifactId>
436429
<version>2.11.2</version>
437430
<type>jar</type>
438-
<scope>compile</scope>
431+
<scope>provided</scope>
439432
<exclusions>
440433
<exclusion>
441434
<groupId>*</groupId>
@@ -456,7 +449,7 @@
456449
<artifactId>coreprotect</artifactId>
457450
<version>21.3</version>
458451
<type>jar</type>
459-
<scope>compile</scope>
452+
<scope>provided</scope>
460453
<exclusions>
461454
<exclusion>
462455
<groupId>*</groupId>
@@ -468,7 +461,7 @@
468461
<groupId>us.dynmap</groupId>
469462
<artifactId>dynmap-api</artifactId>
470463
<version>3.4</version>
471-
<scope>compile</scope>
464+
<scope>provided</scope>
472465
<exclusions>
473466
<exclusion>
474467
<groupId>*</groupId>
@@ -480,7 +473,7 @@
480473
<groupId>org.geysermc.floodgate</groupId>
481474
<artifactId>api</artifactId>
482475
<version>2.2.0-SNAPSHOT</version>
483-
<scope>compile</scope>
476+
<scope>provided</scope>
484477
<exclusions>
485478
<exclusion>
486479
<groupId>*</groupId>
@@ -492,6 +485,7 @@
492485
<groupId>org.swinglabs</groupId>
493486
<artifactId>swing-layout</artifactId>
494487
<version>1.0.3</version>
488+
<scope>provided</scope>
495489
</dependency>
496490
</dependencies>
497491
</project>

0 commit comments

Comments
 (0)