📗
Wiki
  • WIKI
  • Plugins
    • InfoHeads
      • Installation
      • FAQ
      • Using the Wizard
    • MailMe
      • Updating to MailMe Rewrite
      • FAQ
      • Setup
      • Tutorials
        • Niche
        • MailPresets
      • API
        • Setup
        • Interacting with the Database
  • Libraries
    • ProtectionAPI
      • Introduction
      • Getting Started
      • Tutorials
        • Creating a UniversalRegion
        • Collision Detection
      • Change Log
    • HexiTextLib
      • Introduction
      • Setup
        • Gradle
        • Maven
      • Using HexResolver
      • Using FontResolver
      • Change Log
Powered by GitBook
On this page

Was this helpful?

  1. Libraries
  2. HexiTextLib
  3. Setup

Maven

Maven setup tutorial

To start you need to add the jitpack repository to your pom.xml.

<repository>
  <id>jitpack.io</id>
  <url>https://jitpack.io</url>
</repository>

And the dependency to your pom.xml.

<dependency>
  <groupId>com.github.Harry0198</groupId>
  <artifactId>HexiTextLib</artifactId>
  <version>{version}</version>
</dependency>

Lastly, in order to include the framework in your project, you need to add the following to your pom.xml, in the plugins section. Replace [YOUR PACKAGE] with your plugin's package, for example me.myplugin.plugin.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>3.1.1</version>
    <configuration>
        <relocations>
            <relocation>
                <pattern>com.haroldstudios.hexitextlib</pattern>
                <shadedPattern>[YOU PACKAGE].hexitextlib</shadedPattern> <!-- Replace package here here -->
            </relocation>
        </relocations>
    </configuration>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>shade</goal>
            </goals>
        </execution>
    </executions>
</plugin>
PreviousGradleNextUsing HexResolver

Last updated 4 years ago

Was this helpful?