Slackbot
09/07/2023, 9:49 PMVampire
09/07/2023, 10:03 PMtestRuntimeClasspath, resolve it, lookup the version, remove it again.
(detached will not work as detached currently cannot extend from named)Marcin Z.
09/07/2023, 10:06 PMMarcin Z.
09/07/2023, 10:06 PMVampire
09/07/2023, 10:08 PMMarcin Z.
09/07/2023, 10:23 PMConfiguration testImplementation = project.configurations.findByName("testImplementation") //how to can configuration for extendsFrom in lazy way with named?
Configuration tmpTestImplementation = project.configurations.maybeCreate("tmpTestImplementation").extendsFrom(testImplementation)
Set<File> deps = tmpTestImplementation.resolve()
log.warn("deps: " + deps.size())
I observe:
Cannot change dependencies of dependency configuration ':implementation' after it has been included in dependency resolution.Vampire
09/07/2023, 11:17 PMVampire
09/07/2023, 11:18 PMVampire
09/07/2023, 11:19 PMapply, but in the withDependencies?Vampire
09/07/2023, 11:19 PMVampire
09/07/2023, 11:19 PMtestRuntimeOnly will also be marked as being part in resolution and you cannot add the new dependencyVampire
09/07/2023, 11:22 PMapply will still be too soon, as then the user or other plugins did not have a chance to configure the dependencies.Marcin Z.
09/21/2023, 6:19 PMMarcin Z.
09/21/2023, 6:20 PM