Skip to content

Commit

Permalink
Downgrade logback when running tests against Java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd committed Nov 22, 2024
1 parent 0e9c84c commit 158fc2d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ dependencyResolutionManagement {
} else if (kotlinVersion != null) {
version("kotlin", kotlinVersion)
}

downgradeTestDependencies()
}
}
}

fun VersionCatalogBuilder.downgradeTestDependencies() {
val testJdk = providers.gradleProperty("test.jdk").orNull?.toInt() ?: return

if (testJdk < 11) version("logback", "1.3.14") // Java 8 support dropped in 1.4.x
}

0 comments on commit 158fc2d

Please sign in to comment.