Project dependency - SoKnight/PEconomy GitHub Wiki

Introduction

You need to add plugin dependency into your project to use plugin's API for you purposes.
You can use any way to got that: maven or gradle dependencies or built-in tools in your IDE.
All this methods are described below.

jitpackImg

Maven dependency

  1. Add the jitpack.io repository in the pom.xml in your maven project:
    <repositories>
        <!-- ... Your other repositories ... -->
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
  1. After that just add this dependency and replace the TAG to actual version (see the badge in introduction):
    <dependencies>
        <!-- PEconomy -->
        <dependency>
            <groupId>me.soknight</groupId>
            <artifactId>peconomy</artifactId>
            <version>TAG</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
  1. Done. Now you can learn the API documentation here.

Gradle dependency

  1. Add the jitpack.io repository in the build.gradle in your gradle project:
    repositories {
        maven { url 'https://jitpack.io' }
    }
  1. After that just add this dependency and replace the TAG to actual version (see the badge in introduction):
    dependencies {
        implementation 'me.soknight:peconomy:TAG'
    }
  1. Done. Now you can learn the API documentation here.

Built-in tools in your IDE

  1. Download the plugin JAR from the release page.
  2. You also can download the second JAR marked with -sources suffix.
    It's a source code of this plugin and it also contains a small Javadoc.
  3. Import downloaded JARs into your project using your IDE tools for dependency management.
  4. Done. Now you can learn the API documentation here.
⚠️ **GitHub.com Fallback** ⚠️