Skip to content

Commit

Permalink
Enable K2 for build-logic, update language version to 2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Aug 26, 2023
1 parent 1ef1302 commit bde4469
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions build-logic/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.configuration-cache.problems=warn

# Kotlin code style
kotlin.code.style=official

# try K2 compiler
kotlin.experimental.tryK2=true
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import org.jetbrains.kotlin.gradle.plugin.LanguageSettingsBuilder

internal fun LanguageSettingsBuilder.applyLanguageSettings(): LanguageSettingsBuilder {
return apply {
languageVersion = "1.8"
progressiveMode = true
optIn("kotlin.RequiresOptIn")
}
Expand Down

0 comments on commit bde4469

Please sign in to comment.