Skip to content

Commit

Permalink
chore(build): update Kotlin Gradle plugin version and channel configu…
Browse files Browse the repository at this point in the history
…ration

- Updated the Kotlin Gradle plugin apiVersion from 1.7 to 1.7.0.
- Refactored channel configuration to use a Provider for better dependency management.
  • Loading branch information
phodal committed May 13, 2024
1 parent b6942ec commit d2fd7a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ tasks {
jvmTarget = VERSION_17.toString()
languageVersion = "1.8"
// see https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
apiVersion = "1.7"
apiVersion = "1.7.0"
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}
Expand Down Expand Up @@ -162,6 +162,10 @@ tasks {
// pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
channels.set(listOf(properties("pluginVersion").split('-').getOrElse(1) { "default" }.split('.').first()))
val pluginVersion = properties("pluginVersion")
val channel: String = pluginVersion.split('-').getOrElse(1) { "default" }.split('.')[0]
val channelProvider: Provider<List<String>> = providers.provider { listOf(channel) }

channels.set(channelProvider)
}
}

0 comments on commit d2fd7a7

Please sign in to comment.