Slackbot
11/10/2023, 11:45 AMEivind Smedseng
11/10/2023, 11:46 AMimplementation dependenciesVampire
11/10/2023, 12:12 PMapi dependencies in your compile classpath. If you want it differently, you have to configure it differently.
For the default test suite the java plugin configures the configurations accordingly, for example so that testImplementation extends from implementation and thus gets all the same dependencies, and the same for testRuntimeOnly and runtimeOnly.
Regarding version catalog bundles, it would be implementation.bundle(libs.bundles.test-stuff).Eivind Smedseng
11/10/2023, 12:19 PMtesting {
suites {
val integrationTest by registering(JvmTestSuite::class) {
dependencies {
implementation(project())
}
}
}
}
dependensies {
api(...
implementation(...
testImplementation(...
}Eivind Smedseng
11/10/2023, 12:27 PMproject.configurations.getByName("implementation").dependencies.forEach { dependency ->
implementation(dependency)
}Vampire
11/10/2023, 12:28 PMVampire
11/10/2023, 12:29 PMconfigurations.named("integTestImplementation") { extendsFrom(configurations.implementation.get()) } or something like that.Eivind Smedseng
11/10/2023, 12:32 PMEivind Smedseng
11/10/2023, 12:44 PMVampire
11/10/2023, 1:17 PM