Skip to content

Commit

Permalink
Compile only Kotlin stdlib in parser module
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jul 22, 2024
1 parent 4e0aa6e commit b3f5be9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/parser/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ plugins {
dependencies {
api(projects.components.google)

// https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
compileOnly(libs.kotlin.stdlib)

implementation(libs.android.build.tools)

testImplementation(libs.kotlin.test)
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ org.gradle.configuration-cache=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx4g
org.gradle.parallel=true

kotlin.code.style=official
# https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
kotlin.stdlib.default.dependency=false
kotlin.code.style=official
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ android-build-tools = "com.android.tools:sdk-common:31.5.1"
koin-compose = "io.insert-koin:koin-compose:1.1.5"

kotlinpoet = "com.squareup:kotlinpoet:1.18.1"

kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }

tiamat = "io.github.composegears:tiamat:1.1.0-rc02"
Expand Down

0 comments on commit b3f5be9

Please sign in to comment.