Skip to content

Commit

Permalink
add spotless formatter (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisRev authored Apr 20, 2023
1 parent 201b537 commit 4b7ce1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ repositories {
plugins {
base
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.spotless)
}

java {
Expand Down Expand Up @@ -66,3 +67,9 @@ kotlin {
val nativeTest by getting
}
}

spotless {
kotlin {
ktfmt().googleStyle()
}
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
arrow = "1.2.0-RC"
kotlin = "1.8.20"
openai = "0.12.0"
spotless = "6.18.0"

[libraries]
arrow-core = { module = "io.arrow-kt:arrow-core", version.ref = "arrow" }
open-ai = { module = "com.theokanning.openai-gpt3-java:service", version.ref = "openai" }
[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }

0 comments on commit 4b7ce1d

Please sign in to comment.