Created Adding ProtocolLib as a Dependency (markdown)

Dan Mulloy 2019-12-13 22:40:58 -05:00
parent 8e1bfbff56
commit 33e8daffc8
1 changed files with 37 additions and 0 deletions

@ -0,0 +1,37 @@
# Adding ProtocolLib as a Dependency
To start, you're going to want to add ProtocolLib as a dependency to your project. While you could download the jar file and add it as a classpath dependency, we highly recommend using a build system such as [Maven](https://maven.apache.org/guides/getting-started/) or [Gradle](https://docs.gradle.org/current/userguide/getting_started.html).
Maven and Gradle _should_ download the JavaDocs. If not, you can find them here: http://ci.dmulloy2.net/job/ProtocolLib/javadoc/overview-summary.html
**Maven**
```xml
<repositories>
<repository>
<id>dmulloy2-repo</id>
<url>http://repo.dmulloy2.net/nexus/repository/public/</url>
</repository>
...
</repositories>
<dependencies>
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>4.4.0</version>
</dependency>
</dependencies>
```
**Gradle**
```groovy
repositories {
maven { url "http://repo.dmulloy2.net/nexus/repository/public/" }
}
dependencies {
compileOnly group: "com.comphenix.protocol", name: "ProtocolLib", version: "4.4.0";
}
```
##