diff options
author | thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> | 2020-06-20 17:47:55 -0700 |
---|---|---|
committer | thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> | 2020-06-20 17:47:55 -0700 |
commit | 98458685ef50708edb3aebc4d72366d4bc41d71a (patch) | |
tree | 71623afce49865f09312af034df6d39bd4f3c058 /build.gradle | |
parent | 7afdd597f4eb82de491fe37bd9b802f44d13d650 (diff) | |
download | KotlinForForge-98458685ef50708edb3aebc4d72366d4bc41d71a.tar.gz KotlinForForge-98458685ef50708edb3aebc4d72366d4bc41d71a.tar.bz2 KotlinForForge-98458685ef50708edb3aebc4d72366d4bc41d71a.zip |
Update Kotlin for Forge 1.3.0
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/build.gradle b/build.gradle index d9b563e..0722f28 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ apply plugin: 'net.minecraftforge.gradle' apply plugin: 'kotlin' apply plugin: 'org.jetbrains.dokka' -version = "1.2.2" +version = "1.3.0" group = 'thedarkcolour.kotlinforforge' archivesBaseName = 'kotlinforforge' @@ -120,15 +120,19 @@ jar { compileKotlin { kotlinOptions { jvmTarget = '1.8' + freeCompilerArgs = ["-Xexplicit-api=warning"] } - // Required to run in dev environment - copy { - from "$buildDir/classes/kotlin/main" into "$buildDir/classes/java/main" - } +} + +sourceSets.test { + kotlin.srcDirs 'src/example/kotlin' + resources.srcDirs 'src/example/resources' } kotlinSourcesJar { - from(sourceSets.main.kotlin.srcDirs) + from(sourceSets.main.kotlin.srcDirs).eachFile { file -> + println(file.name) + } } dokka { @@ -138,6 +142,6 @@ dokka { configuration { reportUndocumented = true - samples = ["$rootDir/src/test/kotlin/thedarkcolour/kotlinforforge/ExampleMod.kt".toString()] + samples = ["$rootDir/src/test/kotlin/thedarkcolour/example/ExampleMod.kt".toString()] } }
\ No newline at end of file |