Skip to content

Commit

Permalink
share dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaruth committed Oct 13, 2024
1 parent ce4de99 commit 3af50f0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
5 changes: 5 additions & 0 deletions buildSrc/src/main/kotlin/DependencyVersions.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
object DependencyVersions {
const val KTOR = "2.3.12"
const val JACKSON = "2.16.1"
const val LOGBACK = "1.5.8"
}
8 changes: 5 additions & 3 deletions client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ dependencies {
implementation("com.jgoodies:jgoodies-forms:1.6.0")
implementation("com.miglayout:miglayout-swing:5.2")
implementation("com.konghq:unirest-java:3.14.2")
implementation("ch.qos.logback:logback-classic:1.5.8")
implementation("com.fasterxml.jackson.core:jackson-databind:2.16.1")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.1")
implementation("ch.qos.logback:logback-classic:${DependencyVersions.LOGBACK}")
implementation("com.fasterxml.jackson.core:jackson-databind:${DependencyVersions.JACKSON}")
implementation(
"com.fasterxml.jackson.module:jackson-module-kotlin:${DependencyVersions.JACKSON}"
)
implementation(project(":core"))
testImplementation(project(":test-core"))
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
Expand Down
8 changes: 5 additions & 3 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ ktfmt { kotlinLangStyle() }

dependencies {
implementation("javax.activation:activation:1.1.1")
implementation("com.fasterxml.jackson.core:jackson-databind:2.16.1")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.1")
implementation("ch.qos.logback:logback-classic:1.5.8")
implementation("com.fasterxml.jackson.core:jackson-databind:${DependencyVersions.JACKSON}")
implementation(
"com.fasterxml.jackson.module:jackson-module-kotlin:${DependencyVersions.JACKSON}"
)
implementation("ch.qos.logback:logback-classic:${DependencyVersions.LOGBACK}")
implementation("net.logstash.logback:logstash-logback-encoder:8.0")
testImplementation(project(":test-core"))
}
Expand Down
4 changes: 2 additions & 2 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
id("Entropy.kotlin-common-conventions")
id("com.ncorti.ktfmt.gradle") version "0.15.1"
id("io.ktor.plugin") version "2.3.12"
id("io.ktor.plugin") version DependencyVersions.KTOR
application
}

Expand All @@ -22,7 +22,7 @@ dependencies {
implementation("io.ktor:ktor-server-sessions-jvm")
implementation("io.ktor:ktor-server-netty-jvm")
implementation("io.ktor:ktor-server-config-yaml")
implementation("ch.qos.logback:logback-classic:1.5.8")
implementation("ch.qos.logback:logback-classic:${DependencyVersions.LOGBACK}")
testImplementation("io.ktor:ktor-server-test-host-jvm")
testImplementation(project(":test-core"))
}
Expand Down

0 comments on commit 3af50f0

Please sign in to comment.