Skip to content

Commit 72e0de7

Browse files
committed
solved issue with slf4j beta import from kusto ingest from cosmotech-api-azure breaking logs format PROD-9721
1 parent 56c19a6 commit 72e0de7

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

build.gradle.kts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ group = "com.cosmotech"
4040
version = scmVersion.version
4141

4242
val kotlinJvmTarget = 17
43-
val cosmotechApiCommonVersion = "0.1.1-SNAPSHOT"
44-
val cosmotechApiAzureVersion = "0.1.2-SNAPSHOT"
43+
val cosmotechApiCommonVersion = "0.1.2-SNAPSHOT"
44+
val cosmotechApiAzureVersion = "0.1.4-SNAPSHOT"
45+
val azureSpringBootBomVersion = "3.14.0"
4546

4647
allprojects {
4748
apply(plugin = "com.diffplug.spotless")
@@ -190,7 +191,6 @@ subprojects {
190191

191192
implementation("org.zalando:problem-spring-web-starter:0.27.0")
192193

193-
api("com.azure.spring:azure-spring-boot-starter-cosmos:3.1.0")
194194
implementation("org.springframework.boot:spring-boot-starter-security")
195195
implementation("org.springframework.security:spring-security-oauth2-jose:5.6.3")
196196
implementation("org.springframework.security:spring-security-oauth2-resource-server:5.6.3")
@@ -213,7 +213,17 @@ subprojects {
213213
developmentOnly("org.springframework.boot:spring-boot-devtools")
214214

215215
api("com.github.Cosmo-Tech:cosmotech-api-common:$cosmotechApiCommonVersion")
216-
api("com.github.Cosmo-Tech:cosmotech-api-azure:$cosmotechApiAzureVersion")
216+
api("com.github.Cosmo-Tech:cosmotech-api-azure:$cosmotechApiAzureVersion") {
217+
exclude(group = "org.slf4j", module = "slf4j-api")
218+
because(
219+
"this depends on org.slf4j:slf4j-api 1.8.0-beta4 (pre 2.x)," +
220+
"which is not backward-compatible with 1.7.x." +
221+
"See http://www.slf4j.org/faq.html#changesInVersion200")
222+
}
223+
224+
225+
implementation(platform("com.azure.spring:azure-spring-boot-bom:$azureSpringBootBomVersion"))
226+
api("com.azure.spring:azure-spring-boot-starter-cosmos")
217227
}
218228

219229
tasks.withType<KotlinCompile> {

0 commit comments

Comments
 (0)