Created
February 6, 2019 19:54
-
-
Save DevSrSouza/e489e15aeec7cff47d524c271912ce9e to your computer and use it in GitHub Desktop.
Kotlin + Spigot 1.8.8 + Minecraft dev IntelliJ Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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