melix
07/17/2025, 1:31 PMmelix
07/17/2025, 1:31 PMmelix
07/17/2025, 1:32 PMfindBaseline
)melix
07/17/2025, 1:32 PMmelix
07/17/2025, 1:32 PMResolution of the configuration :detachedConfiguration6 was attempted from a context different than the project context. Have a look at the documentation to understand why this is a problem and how it can be resolved. This behavior has been deprecated.This will fail with an error in Gradle 9.0.
melix
07/17/2025, 1:33 PMVampire
07/17/2025, 1:33 PM// but we'll have to find a better solution which doesn't reach into other project's state
melix
07/17/2025, 1:33 PMmelix
07/17/2025, 1:35 PMVampire
07/17/2025, 1:35 PMmelix
07/17/2025, 1:35 PMmelix
07/17/2025, 1:35 PMVampire
07/17/2025, 1:35 PMsince this is a different case, where a configuration was created in a different project, then resolved in the current oneIsn't that exactly the case? You create the configuration in the root project and resolve it in the current one?
melix
07/17/2025, 1:36 PMVampire
07/17/2025, 1:36 PMVampire
07/17/2025, 1:42 PMval foo by tasks.registering {
val conf: FileCollection = rootProject.configurations.detachedConfiguration(project.dependencies.create("commons-io:commons-io:+"))
inputs.files(conf)
doLast {
conf.forEach { file -> println("file = $file") }
}
}
Vampire
07/17/2025, 1:44 PMproject.dependencies.create(project)
melix
07/17/2025, 1:45 PM