Skip to content

Instantly share code, notes, and snippets.

@DevSrSouza
Created February 6, 2019 19:54
Show Gist options
  • Save DevSrSouza/e489e15aeec7cff47d524c271912ce9e to your computer and use it in GitHub Desktop.
Save DevSrSouza/e489e15aeec7cff47d524c271912ce9e to your computer and use it in GitHub Desktop.
Kotlin + Spigot 1.8.8 + Minecraft dev IntelliJ Plugin
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.20'
id 'com.github.johnrengelman.shadow' version '4.0.3'
}
group = pluginGroup
version = pluginVersion
sourceCompatibility = 1.8
repositories {
jcenter()
maven {
name = "spigot"
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compileOnly("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT")
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment