Skip to content

Commit

Permalink
Merge pull request #207 from KyoriPowered/renovate/major-gradle-and-g…
Browse files Browse the repository at this point in the history
…ithub-actions

chore(deps): Update gradle and github actions to v2 (major)
  • Loading branch information
zml2008 authored May 28, 2024
2 parents bd6cd6a + 2d6ebeb commit 1840846
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@file:OptIn(ExperimentalKotlinGradlePluginApi::class)

import net.kyori.indra.git.IndraGitExtension
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpack

plugins {
Expand Down Expand Up @@ -51,15 +54,18 @@ kotlin {

jvm {
withJava()
compilations.configureEach {
kotlinOptions.jvmTarget = "$javaTarget"
kotlinOptions.freeCompilerArgs += "-Xjdk-release=$javaTarget"
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.fromTarget("$javaTarget")
freeCompilerArgs.add("-Xjdk-release=$javaTarget")
}
}

js(IR) {
js {
browser {
}
compilerOptions {
target = "es2015"
}
binaries.executable()
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
adventure = "4.17.0"
kotlin = "1.9.23"
kotlin = "2.0.0"
ktlint = "1.0.1"
ktor = "2.3.11"

Expand Down

0 comments on commit 1840846

Please sign in to comment.