Skip to content

Commit

Permalink
Ensure folia is not required to compile against us
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Apr 9, 2023
1 parent ba80e0a commit b23aa18
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
7 changes: 2 additions & 5 deletions SubServers.Client/Bukkit/pom.xml
Expand Up @@ -89,17 +89,14 @@
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<mkdir dir="${project.build.directory}" />
<copy file="${basedir}/../../LICENSE" todir="${project.build.directory}/classes" />
<copy overwrite="true" todir="${project.build.directory}/classes">
<fileset dir="../../out/compile/target/SubServers.Client.Folia/classes" />
</copy>
</tasks>
</configuration>
</execution>
Expand All @@ -125,7 +122,7 @@
<manifestFile>src/META-INF/MANIFEST.MF</manifestFile>
</archive>
<descriptors>
<descriptor>../Common/jar-with-some-dependencies.xml</descriptor>
<descriptor>../Folia/jar-with-some-dependencies-plus-folia.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
Expand Down
29 changes: 29 additions & 0 deletions SubServers.Client/Folia/jar-with-some-dependencies-plus-folia.xml
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.1 https://maven.apache.org/xsd/assembly-2.1.1.xsd">
<id>jar-with-some-dependencies-plus-folia</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<useProjectArtifact>true</useProjectArtifact>
<unpack>true</unpack>
<scope>runtime</scope>
<excludes>
<exclude>org.json:json</exclude>
<exclude>org.yaml:snakeyaml</exclude>
</excludes>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<outputDirectory>/</outputDirectory>
<directory>../../out/compile/target/SubServers.Client.Folia/classes</directory>
<includes>
<include>**</include>
</includes>
</fileSet>
</fileSets>
</assembly>
2 changes: 1 addition & 1 deletion SubServers.Client/Universal/pom.xml
Expand Up @@ -45,7 +45,7 @@
<manifestFile>MANIFEST.MF</manifestFile>
</archive>
<descriptors>
<descriptor>../Common/jar-with-some-dependencies.xml</descriptor>
<descriptor>../Folia/jar-with-some-dependencies-plus-folia.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
Expand Down

0 comments on commit b23aa18

Please sign in to comment.