diff options
author | thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> | 2021-02-01 10:36:32 -0800 |
---|---|---|
committer | thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> | 2021-02-01 10:36:32 -0800 |
commit | 28214d92042f0a4673f53699b1ff52af0226ccb3 (patch) | |
tree | 615ee3e17759e407cbe8451c7ff6d7af4f871411 /build.gradle | |
parent | 668b5c35ea900750c35f2ea8d878c1c5e6a04607 (diff) | |
download | KotlinForForge-28214d92042f0a4673f53699b1ff52af0226ccb3.tar.gz KotlinForForge-28214d92042f0a4673f53699b1ff52af0226ccb3.tar.bz2 KotlinForForge-28214d92042f0a4673f53699b1ff52af0226ccb3.zip |
Kotlin for Forge 1.8.0
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle index 0e288ba..c0855c3 100644 --- a/build.gradle +++ b/build.gradle @@ -9,6 +9,7 @@ buildscript { dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version" classpath 'org.jetbrains.dokka:dokka-gradle-plugin:0.10.1' classpath group: 'com.wynprice.cursemaven', name: 'CurseMaven', version: '2.1.5' } @@ -20,9 +21,10 @@ plugins { apply plugin: 'net.minecraftforge.gradle' apply plugin: 'kotlin' +apply plugin: 'kotlinx-serialization' apply plugin: 'org.jetbrains.dokka' -version = "1.7.0" +version = "1.8.0" group = 'thedarkcolour.kotlinforforge' archivesBaseName = 'kotlinforforge' @@ -48,7 +50,7 @@ repositories { } dependencies { - minecraft 'net.minecraftforge:forge:1.16.2-33.0.22' + minecraft 'net.minecraftforge:forge:1.16.5-36.0.9' compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib", version: kotlin_version compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk7", version: kotlin_version @@ -57,13 +59,14 @@ dependencies { compile group: "org.jetbrains", name: "annotations", version: annotations_version compile group: "org.jetbrains.kotlinx", name: "kotlinx-coroutines-core", version: coroutines_version compile group: "org.jetbrains.kotlinx", name: "kotlinx-coroutines-jdk8", version: coroutines_version + compile group: "org.jetbrains.kotlinx", name: "kotlinx-serialization-json", version: serialization_version // Tests implementation 'junit:junit:4.11' } minecraft { - mappings channel: 'snapshot', version: '20200723-1.16.1' + mappings channel: 'snapshot', version: '20201028-1.16.3' runs { client { @@ -90,6 +93,7 @@ shadowJar { include dependency("org.jetbrains:annotations:${annotations_version}") include dependency("org.jetbrains.kotlinx:kotlinx-coroutines-core:${coroutines_version}") include dependency("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:${coroutines_version}") + include dependency("org.jetbrains.kotlinx:kotlinx-serialization-json:${serialization_version}") } } @@ -110,7 +114,7 @@ jar { static def options(kotlinOptions) { kotlinOptions.jvmTarget = '1.8' - kotlinOptions.freeCompilerArgs = ["-Xexplicit-api=warning"] + kotlinOptions.freeCompilerArgs = ['-Xexplicit-api=warning', '-Xjvm-default=enable'] } compileKotlin { |