Skip to content

Commit

Permalink
k2
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed May 6, 2024
1 parent 3127558 commit b551064
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ syntax: glob
!/.idea/codeStyles
*.iml

.kotlin
.gradle
classes
build/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ kotlin {
// allWarningsAsErrors.set(true)
progressiveMode.set(true)
freeCompilerArgs.add("-Xrender-internal-diagnostic-names")
optIn.addAll(
// TODO: drop Transport annotations
OptIns.TransportApi,
OptIns.RSocketTransportApi,

OptIns.ExperimentalSubclassOptIn
)
}

sourceSets.configureEach {
Expand All @@ -55,8 +62,10 @@ kotlin {

targets.withType<KotlinJvmTarget>().configureEach {
compilations.configureEach {
compilerOptions.configure {
freeCompilerArgs.add("-Xjvm-default=all")
compileTaskProvider.configure {
compilerOptions {
freeCompilerArgs.add("-Xjvm-default=all")
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions build-logic/src/main/kotlin/rsocketbuild/OptIns.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package rsocketbuild

@Suppress("ConstPropertyName")
object OptIns {
const val ExperimentalSubclassOptIn = "kotlin.ExperimentalSubclassOptIn"
const val ExperimentalStdlibApi = "kotlin.ExperimentalStdlibApi"
const val ExperimentalCoroutinesApi = "kotlinx.coroutines.ExperimentalCoroutinesApi"
const val DelicateCoroutinesApi = "kotlinx.coroutines.DelicateCoroutinesApi"
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
kotlin = "1.9.22"
kotlin = "2.0.0-RC1"

kotlinx-atomicfu = "0.23.2"
kotlinx-coroutines = "1.8.0"
Expand Down

0 comments on commit b551064

Please sign in to comment.