Compatibility - GardeningTool/Quar GitHub Wiki

How to make Quar compatible with other Quar projects.

Whilst Shading

Quar whilst being shaded into your projects jar file can be relocated to a custom package of your choosing. To relocate Quar you should check our documentation about relocation on your build tool.

Here are some examples with the most popular build tools.

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>3.2.4</version>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>shade</goal>
            </goals>
            <configuration>
                <minimizeJar>true</minimizeJar>
                <createDependencyReducedPom>false</createDependencyReducedPom>
                <relocations>
                    <relocation>
                        <pattern>club.quar</pattern>
                         <shadedPattern>me.tecnio.quar</shadedPattern> <!--relocate our Quar package!-->
                    </relocation>
                </relocations>
            </configuration>
        </execution>
    </executions>
</plugin>

Quar Standalone Installation

Quar's compiled jar could be downloaded from the SpigotMC resource page or from the GitHub released page. You could put this on your servers plugin and put Quar as a depend on your plugin.yml file on your plugin as shown below.

name: plugin-name
version: 1.0.0
main: package.MainClass
load: STARTUP
author: username
depend:
  - Quar
⚠️ **GitHub.com Fallback** ⚠️