-
Notifications
You must be signed in to change notification settings - Fork 1
Maven Import
Dalton edited this page Apr 24, 2022
·
18 revisions
Do note you will need a shade plugin for this to be shaded into your plugins jar
<build>
<plugins>
. . .
<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>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
. . .
</build>
Firstly you need the JitPack repository added to your project:
<repositories>
<!-- JitPack for GitHub projects -->
<repository>
<id>jitpack.io</id>
<!-- This has "www" because: https://stackoverflow.com/questions/54928706/error-in-library-built-with-jitpack-unable-to-resolve-dependency-for-appdebu -->
<url>https://www.jitpack.io</url>
</repository>
</repositories>
And then you need to add the dependency to your project
NOTE: The version listed in this example, is the CORRECT version to use!
<dependencies>
<!-- My own plugin API -->
<dependency>
<groupId>com.github.Burchard36</groupId>
<artifactId>BurchAPI</artifactId>
<version>2.1.3</version>
<scope>compile</scope>
</dependency>
</dependencies>
Page written by: Dalton Burchard
- Your main class and you
- Editing API Settings (Optional)
- Creating an PluginInventory
- Creating Clickable items
- (Not added yet) Examples