Skip to content

Commit

Permalink
fix Kotlin EAP warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed May 23, 2024
1 parent 92309f4 commit 94ec50b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci-kotlin-eap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
schedule:
- cron: '0 0 * * MON'

defaults:
run:
shell: bash

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -25,4 +29,4 @@ jobs:
release: false
install: mingw-w64-x86_64-openssl

- run: ./gradlew build connectedCheck publishToMavenLocal --continue -Pckbuild.skipTests=true -Pckbuild.kotlinVersionOverride=${{ matrix.kotlin-version }} -Pkotlin.experimental.tryNext=${{ matrix.try-next }}
- run: ./gradlew build connectedCheck publishToMavenLocal --continue -Pckbuild.skipTests=true -Pckbuild.warningsAsErrors=false -Pckbuild.kotlinVersionOverride=${{ matrix.kotlin-version }} -Pkotlin.experimental.tryNext=${{ matrix.try-next }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ plugins {
id("org.jetbrains.kotlinx.kover")
}

// true by default
val warningsAsErrors = providers.gradleProperty("ckbuild.warningsAsErrors").orNull?.toBoolean() ?: true

@OptIn(ExperimentalKotlinGradlePluginApi::class)
kotlin {
compilerOptions {
allWarningsAsErrors.set(true)
allWarningsAsErrors.set(warningsAsErrors)
progressiveMode.set(true)
freeCompilerArgs.add("-Xrender-internal-diagnostic-names")
optIn.addAll(OptIns.ExperimentalSubclassOptIn)
Expand Down

0 comments on commit 94ec50b

Please sign in to comment.