Skip to content

Commit ca5b4c4

Browse files
committed
Also relocate CraftBukkit packages in the mojang-mapped plugin
1 parent 5958a8d commit ca5b4c4

File tree

1 file changed

+20
-0
lines changed
  • commandapi-platforms/commandapi-bukkit/commandapi-bukkit-plugin-mojang-mapped

1 file changed

+20
-0
lines changed

commandapi-platforms/commandapi-bukkit/commandapi-bukkit-plugin-mojang-mapped/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@
110110
</excludes>
111111
</filter>
112112
</filters>
113+
<relocations>
114+
<relocation>
115+
<pattern>org.bukkit.craftbukkit.v1_20_R4</pattern>
116+
<shadedPattern>org.bukkit.craftbukkit</shadedPattern>
117+
</relocation>
118+
</relocations>
113119
<transformers>
114120
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
115121
<resource>LICENSE</resource>
@@ -119,6 +125,20 @@
119125
</execution>
120126
</executions>
121127
</plugin>
128+
<!-- Add the maven-jar-plugin to mark the Mojang mapped plugin (this one) as mojang mapped
129+
as Paper would assume Spigot mappings when no manifest entry is given and a plugin.yml is used -->
130+
<plugin>
131+
<groupId>org.apache.maven.plugins</groupId>
132+
<artifactId>maven-jar-plugin</artifactId>
133+
<version>3.4.1</version>
134+
<configuration>
135+
<archive>
136+
<manifestEntries>
137+
<paperweight-mappings-namespace>mojang</paperweight-mappings-namespace>
138+
</manifestEntries>
139+
</archive>
140+
</configuration>
141+
</plugin>
122142
</plugins>
123143
</build>
124144
</project>

0 commit comments

Comments
 (0)