Skip to content

Commit

Permalink
Upgrade Kotlin to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh committed Dec 19, 2024
1 parent a0a149b commit 59e19e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions components/ide/jetbrains/toolbox/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import com.github.jk1.license.filter.ExcludeTransitiveDependenciesFilter
import com.github.jk1.license.render.JsonReportRenderer
import org.jetbrains.intellij.pluginRepository.PluginRepositoryFactory
import org.jetbrains.kotlin.com.intellij.openapi.util.SystemInfoRt
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import java.nio.file.Path
import kotlin.io.path.div

Expand Down Expand Up @@ -94,10 +94,12 @@ licenseReport {
filters = arrayOf(ExcludeTransitiveDependenciesFilter())
}


kotlin {
jvmToolchain(21)
}
tasks.compileKotlin {
kotlinOptions.freeCompilerArgs += listOf(
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
)
compilerOptions.jvmTarget.set(JvmTarget.JVM_21)
}

val restartToolbox by tasks.creating {
Expand Down Expand Up @@ -180,8 +182,8 @@ val uploadPlugin by tasks.creating {
dependsOn(pluginZip)

doLast {
val token = System.getenv("JB_MARKETPLACE_PUBLISH_TOKEN")
val instance = PluginRepositoryFactory.create("https://plugins.jetbrains.com", token)
// val token = System.getenv("JB_MARKETPLACE_PUBLISH_TOKEN")
// val instance = PluginRepositoryFactory.create("https://plugins.jetbrains.com", token)

// first upload
// instance.uploader.uploadNewPlugin(
Expand Down
2 changes: 1 addition & 1 deletion components/ide/jetbrains/toolbox/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
gateway = "2.6.0.34606"
kotlin = "1.9.0"
kotlin = "2.0.10"
coroutines = "1.7.3"
serialization = "1.5.0"
okhttp = "4.10.0"
Expand Down
2 changes: 1 addition & 1 deletion components/public-api/java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
plugins {
// Apply the java-library plugin for API and implementation separation.
`java-library`
id("org.jetbrains.kotlin.jvm") version "1.9.0"
id("org.jetbrains.kotlin.jvm") version "2.0.10"
}

repositories {
Expand Down

0 comments on commit 59e19e5

Please sign in to comment.