Compare commits

...

4 Commits

Author SHA1 Message Date
Iaroslav Postovalov
b4058925ee
Enable context receivers for all compilations 2022-04-04 18:27:35 +07:00
Iaroslav Postovalov
1fe019da21
Enable context receivers 2022-04-04 18:09:09 +07:00
Iaroslav Postovalov
119fe49bbe
Fix indentaion 2022-04-04 16:06:48 +07:00
Iaroslav Postovalov
45a03716ee
Use Kotlin 1.6.20, update GitHub Actions 2022-04-04 16:05:27 +07:00
6 changed files with 26 additions and 16 deletions

View File

@ -11,11 +11,11 @@ jobs:
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2.5.0
- uses: actions/checkout@v3.0.0
- uses: actions/setup-java@v3.0.0
with:
java-version: 11
distribution: liberica
- uses: gradle/gradle-build-action@v2
- uses: gradle/gradle-build-action@v2.1.5
with:
arguments: build

View File

@ -11,14 +11,14 @@ jobs:
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2.5.0
- uses: actions/checkout@v3.0.0
- uses: actions/setup-java@v3.0.0
with:
java-version: 11
distribution: liberica
- uses: gradle/gradle-build-action@v2
- uses: gradle/gradle-build-action@v2.1.5
with:
arguments: |
publishAllPublicationsToSpaceRepository
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
publishAllPublicationsToSpaceRepository
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}

View File

@ -1,6 +1,6 @@
[versions]
tools = "0.11.2-kotlin-1.6.10"
kotlin = "1.6.10"
tools = "0.11.2-kotlin-1.6.20"
kotlin = "1.6.20"
atomicfu = "0.17.1"
binary-compatibility-validator = "0.8.0"
changelog = "1.3.1"
@ -15,10 +15,10 @@ kotlinx-html = "0.7.3"
kotlinx-knit = "0.3.0"
kotlinx-nodejs = "0.0.7"
kotlinx-serialization = "1.3.2"
ktor = "1.6.7"
xmlutil = "0.84.0"
ktor = "1.6.8"
xmlutil = "0.84.1"
yamlkt = "0.10.2"
jsBom = "0.0.1-pre.313-kotlin-1.6.10"
jsBom = "0.0.1-pre.325-kotlin-1.6.10"
junit = "5.8.2"
[libraries]

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@ -44,7 +44,7 @@ public fun Project.configureKScience(
tasks.withType<KotlinJvmCompile> {
kotlinOptions {
jvmTarget = KScienceVersions.JVM_TARGET.toString()
freeCompilerArgs = freeCompilerArgs + defaultJvmArgs
freeCompilerArgs = freeCompilerArgs + defaultJvmArgs + "-Xcontext-receivers"
}
}
@ -141,6 +141,14 @@ public fun Project.configureKScience(
}
}
targets.all {
compilations.all {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
}
}
}
sourceSets.all {
languageSettings.applySettings(kotlinVersion)
}

View File

@ -25,6 +25,8 @@ internal fun LanguageSettingsBuilder.applySettings(
optIn("kotlin.time.ExperimentalTime")
optIn("kotlin.contracts.ExperimentalContracts")
optIn("kotlin.js.ExperimentalJsExport")
enableLanguageFeature("ContextReceivers")
}
internal fun RepositoryHandler.applyRepos() {