Skip to content

Commit

Permalink
Keep lambdas serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed May 23, 2024
1 parent 24bf514 commit e57a14c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ allprojects {
kotlin {
jvmToolchain(libs.versions.java.compilation.get().toInteger())
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask).configureEach {
compilerOptions {
freeCompilerArgs.add("-Xlambdas=class")
}
}
}
pluginManager.withPlugin("java-gradle-plugin") {
configurations {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,13 @@ class KotlinLibraryPlugin : Plugin<Project> {
}
}
}

pluginManager.withPlugin("java-gradle-plugin") {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask::class.java).configureEach {
compilerOptions {
freeCompilerArgs.add("-Xlambdas=class")
}
}
}
}
}

0 comments on commit e57a14c

Please sign in to comment.