Skip to content

Pin the plugin's Kotlin language level on 2.0 #1448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ kotlin {
explicitApi()
compilerOptions {
// https://docs.gradle.org/current/userguide/compatibility.html#kotlin
@Suppress("DEPRECATION") // TODO: bump apiVersion to 2.0 to match Gradle 9.0
apiVersion = KotlinVersion.KOTLIN_1_8
apiVersion = KotlinVersion.KOTLIN_2_0
languageVersion = apiVersion
jvmTarget = JvmTarget.JVM_11
freeCompilerArgs.addAll(
"-Xjvm-default=all",
Expand Down
5 changes: 5 additions & 0 deletions docs/changes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## [Unreleased](https://github.com/GradleUp/shadow/compare/9.0.0-beta14...HEAD) - 2025-xx-xx

**Fixed**

- Pin the plugin's Kotlin language level on 2.0. ([#1448](https://github.com/GradleUp/shadow/pull/1448))
The language level used in `9.0.0-beta14` is 2.2, which may cause compatibility issues for the plugins depending on
Shadow.

## [9.0.0-beta14](https://github.com/GradleUp/shadow/releases/tag/9.0.0-beta14) - 2025-05-28

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import org.junit.jupiter.api.io.TempDir

class DocCodeSnippetTest {

@OptIn(ExperimentalStdlibApi::class)
@TestFactory
fun provideDynamicTests(@TempDir root: Path): List<DynamicTest> {
val langExecutables = DslLang.entries.map { executor ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ public open class PropertiesFileTransformer @Inject constructor(
public companion object {
@JvmStatic
public fun from(value: String): MergeStrategy {
@OptIn(ExperimentalStdlibApi::class)
return entries.find { it.name.equals(value, ignoreCase = true) }
?: throw IllegalArgumentException("Unknown merge strategy: $value")
}
Expand Down