Kotlin Library for Bukkit and BungeeCord plugins
Add this to your build.gradle
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
Now add one of compile line below:
dependencies {
// For 0.2 Spigot:
compile 'com.github.GameModsBR.KotlinFun:SpigotPlugin:0.2'
// For 0.2 Bukkit:
compile 'com.github.GameModsBR.KotlinFun:BukkitPlugin:0.2'
// For 0.2 BungeeCord:
compile 'com.github.GameModsBR.KotlinFun:BungeePlugin:0.2'
// For 0.2 Universal:
compile 'com.github.GameModsBR.KotlinFun:UniversalPlugin:0.2'
// For 0.3-SNAPSHOT (includes everything)
compile 'com.github.GameModsBR:KotlinFun:master-SNAPSHOT'
}
If you want to work with a different Bukkit/BungeeCord version then add a exclusion rule, for example:
dependencies {
compile('com.github.GameModsBR.KotlinFun:BukkitPlugin:0.1') {
exclude module:'bukkit'
}
compile('com.github.GameModsBR.KotlinFun:BungeePlugin:0.1') {
exclude group:'net.md-5'
}
}
Add this repository to your main pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Now add one of the depedencies below:
<dependencies>
<!-- For 0.2 Spigot -->
<dependency>
<groupId>com.github.GameModsBR.KotlinFun</groupId>
<artifactId>SpigotPlugin</artifactId>
<version>0.2</version>
</dependency>
<!-- For 0.2 Bukkit -->
<dependency>
<groupId>com.github.GameModsBR.KotlinFun</groupId>
<artifactId>BukkitPlugin</artifactId>
<version>0.2</version>
</dependency>
<!-- For 0.2 BungeeCord -->
<dependency>
<groupId>com.github.GameModsBR.KotlinFun</groupId>
<artifactId>BungeePlugin</artifactId>
<version>0.2</version>
</dependency>
<!-- For 0.2 Universal -->
<dependency>
<groupId>com.github.GameModsBR.KotlinFun</groupId>
<artifactId>UniversalPlugin</artifactId>
<version>0.2</version>
</dependency>
<!-- For 0.3-SNAPSHOT (includes everything) -->
<dependency>
<groupId>com.github.GameModsBR</groupId>
<artifactId>KotlinFun</artifactId>
<version>master-SNAPSHOT</version>
</dependency>
</dependencies>
If you want to work with a different Bukkit/BungeeCord version then add a exclusion rule, for example:
<dependencies>
<dependency>
<groupId>com.github.GameModsBR.KotlinFun</groupId>
<artifactId>BukkitPlugin</artifactId>
<version>0.2</version>
<exclusions>
<exclusion>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.GameModsBR.KotlinFun</groupId>
<artifactId>BungeePlugin</artifactId>
<version>0.2</version>
<exclusions>
<exclusion>
<groupId>net.md-5</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>