Skip to content

Commit

Permalink
build: enable context receivers
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdm2883 committed Oct 3, 2024
1 parent 1068826 commit c9c3210
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.jetbrains.compose) apply false
alias(libs.plugins.gradleup.shadow) apply false
Expand All @@ -10,6 +10,10 @@ plugins {
subprojects {
afterEvaluate {

kotlin.compilerOptions.freeCompilerArgs.addAll(
"-Xcontext-receivers", // https://kotlinlang.org/docs/whatsnew2020.html#phased-replacement-of-context-receivers-with-context-parameters
)

if (projectDir.resolve("src/main/resources/plugin.json").exists()) {
val version = rootProject.libs.versions.allaymc.kotlinx.get()

Expand Down

0 comments on commit c9c3210

Please sign in to comment.