Giuseppe Barbieri
04/16/2024, 9:17 AMproject::afterEvaluate
in order to query it after the project has been evaluated and the configurations dependencies resolved.
I'm querying this way:
project.afterEvaluate {
configurations.configureEach {
if (name.endsWith("CompileClasspath") || name.endsWith("RuntimeClasspath"))
resolvedConfiguration.files.forEach { println(it) }
}
}
but Gradle still complains
Cannot change hierarchy of dependency configuration 'composeAppdesktopCompilationApi' after it has been included in dependency resolution.
Giuseppe Barbieri
04/16/2024, 9:18 AM::apply
instead of a generic taskGiuseppe Barbieri
04/16/2024, 9:26 AMthis.incoming.afterResolve {
this.resolutionResult.allDependencies.forEach {
println(it)
}
}