[Build] Add jUnit dependencies in testApiJUnit5 to the implementation configuration
Adding these dependencies to the `api` configuration pollutes classpath for each dependant modules even if it doesn't need them. Instead, the dependencies should be declared more granularly if they're required #KTI-1349 In Progress
This commit is contained in:
committed by
Space Team
parent
0ecbb64c64
commit
53fde520d5
@@ -197,13 +197,13 @@ fun Project.testApiJUnit5() {
|
||||
with(dependencies) {
|
||||
val libsVersionCatalog = libsVersionCatalog
|
||||
testApi(platform(libsVersionCatalog.findLibrary("junit-bom").orElseThrow { GradleException("No version for `junit-bom`") }))
|
||||
testApi(libsVersionCatalog.findLibrary("junit-jupyter-api").orElseThrow { GradleException("No version for `junit-jupyter-api`") })
|
||||
testImplementation(libsVersionCatalog.findLibrary("junit-jupyter-api").orElseThrow { GradleException("No version for `junit-jupyter-api`") })
|
||||
testRuntimeOnly(
|
||||
libsVersionCatalog.findLibrary("junit-jupyter-engine").orElseThrow { GradleException("No version for `junit-jupyter-engine`") })
|
||||
testApi(
|
||||
testImplementation(
|
||||
libsVersionCatalog.findLibrary("junit-platform-commons")
|
||||
.orElseThrow { GradleException("No version for `junit-platform-commons`") })
|
||||
testApi(
|
||||
testImplementation(
|
||||
libsVersionCatalog.findLibrary("junit-platform-launcher")
|
||||
.orElseThrow { GradleException("No version for `junit-platform-launcher`") })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user