Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Apr 29, 2024
1 parent 8c5af26 commit 6b67d80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions: write-all

jobs:
mikbot:
uses: mikbot/mikbot-workflow/.github/workflows/mikbot-workflow.yml@v1.5.3
uses: mikbot/mikbot-workflow/.github/workflows/mikbot-workflow.yml@v1.5.4
with:
run-maven-publish: true
update-binary-repository: true
Expand Down
10 changes: 1 addition & 9 deletions gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
Expand All @@ -24,6 +23,7 @@ dependencies {

kotlin {
compilerOptions {
freeCompilerArgs.add("-Xcontext-receivers")
jvmTarget = JvmTarget.JVM_17
}
}
Expand All @@ -48,14 +48,6 @@ gradlePlugin {

}

tasks {
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xcontext-receivers")
}
}
}

afterEvaluate {
buildConfig {
packageName("dev.schlaubi.mikbot.gradle")
Expand Down
10 changes: 3 additions & 7 deletions music/player/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
`mikbot-module`
`mikbot-publishing`
Expand Down Expand Up @@ -37,11 +35,9 @@ dependencies {
testImplementation(kotlin("test-junit5"))
}

tasks {
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
}
kotlin {
compilerOptions {
freeCompilerArgs.add("-Xcontext-receivers")
}
}

Expand Down

0 comments on commit 6b67d80

Please sign in to comment.