mirror of https://github.com/kami-blue/client
add kotlin to project
This commit is contained in:
parent
1e65f0a4f6
commit
a04e132201
14
build.gradle
14
build.gradle
|
@ -1,6 +1,7 @@
|
|||
// forge's stuff
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.3.72'
|
||||
repositories {
|
||||
jcenter()
|
||||
maven {
|
||||
|
@ -16,10 +17,12 @@ buildscript {
|
|||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
||||
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
|
||||
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.3'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'org.spongepowered.mixin'
|
||||
apply plugin: 'com.github.johnrengelman.shadow'
|
||||
|
||||
|
@ -77,6 +80,7 @@ dependencies {
|
|||
compile 'club.minnced:java-discord-rpc:2.0.2'
|
||||
compile 'com.github.MrPowerGamerBR:TemmieWebhook:-SNAPSHOT'
|
||||
compile 'com.github.kevinsawicki:http-request:http-request-6.0'
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
}
|
||||
|
||||
processResources {
|
||||
|
@ -144,3 +148,13 @@ jar {
|
|||
}
|
||||
|
||||
build.dependsOn(shadowJar)
|
||||
compileKotlin {
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
}
|
||||
compileTestKotlin {
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue