Skip to content

Commit

Permalink
chore(gradle): fix kotlin version
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed Feb 23, 2024
1 parent c6eb9f3 commit f7d1052
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions gradle/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import org.gradle.kotlin.dsl.support.unzipTo
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension
import sc.gradle.ScriptsTask
import java.nio.file.Files
import java.util.concurrent.atomic.AtomicBoolean

plugins {
maven
kotlin("jvm") version "1.9.22"
kotlin("jvm") version "1.6.21"
id("org.jetbrains.dokka") version "0.10.1"
id("scripts-task")

id("com.github.ben-manes.versions") version "0.47.0"
id("com.github.ben-manes.versions") version "0.42.0" // only upgrade with Gradle 7: https://github.com/ben-manes/gradle-versions-plugin/issues/778
id("se.patrikerdes.use-latest-versions") version "0.2.18"
}

Expand All @@ -32,7 +33,7 @@ val enableIntegrationTesting = !project.hasProperty("nointegration") && (!isBeta

val javaTargetVersion = JavaVersion.VERSION_1_8
val javaVersion = JavaVersion.current()
println("Current version: $version (Beta: $isBeta) Game: $game (Java Version: $javaVersion)")
println("Current version: $version (Beta: $isBeta) Game: $game (Kotlin ${kotlinExtension.coreLibrariesVersion}, Java $javaVersion)")
if (javaVersion != javaTargetVersion)
System.err.println("Java version $javaTargetVersion is recommended - expect issues with generating documentation (consider '-x doc' if you don't care)")

Expand Down
2 changes: 1 addition & 1 deletion gradle/custom-tasks/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
kotlin("jvm") version "1.9.22"
kotlin("jvm") version "1.6.21"
`java-gradle-plugin`
}

Expand Down

0 comments on commit f7d1052

Please sign in to comment.