diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -7,6 +7,16 @@ Makes Kotlin forge-friendly by doing the following: To implement in your project, add the following to your build.gradle: ```groovy +buildscript { + // ... + dependencies { + // Check the mod file for the Kotlin version + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61" + } +} + +apply plugin: 'kotlin' + repositories { maven { name = 'kotlinforforge' @@ -18,6 +28,12 @@ dependencies { // Uses the latest version of KotlinForForge implementation 'thedarkcolour:kotlinforforge:1+' } + +compileKotlin { + kotlinOptions { + jvmTarget = '1.8' + } +} ``` Then, add the following to your mods.toml file: ```toml |