Slackbot
12/13/2023, 5:46 PMThomas Broyer
12/13/2023, 5:57 PMCaleb Cushing
12/13/2023, 5:59 PMCaleb Cushing
12/13/2023, 6:00 PMChris Lee
12/13/2023, 6:03 PMCaleb Cushing
12/13/2023, 6:10 PMVampire
12/13/2023, 6:11 PMdependsOn(subprojects.map { it.tasks.dependencies }) to dependsOn(subprojects.map { "${it.path}:dependencies" }) to not reach into those other projects model.Caleb Cushing
12/13/2023, 6:11 PMconfigurations.checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.guava:guava") {
selectHighestVersion()
}
}
dependencies {
checkstyle(libs.checkstyle)
}
didn't work πChris Lee
12/13/2023, 6:12 PMcom.google.collections:google-collections (from the build scan) and select the Guava module.Caleb Cushing
12/13/2023, 6:16 PMconfigurations.checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava")
}
}
> Could not resolve all dependencies for configuration ':app:checkstyle'.
> Capability resolution rule failed with an error
> Invalid module component notation: com.google.guava:guava : must be a valid 3 part identifier, eg.: org.gradle:gradle:1.0
so I have to provide the version? I can't say use the version that's being asked for?Thomas Broyer
12/13/2023, 6:17 PMVampire
12/13/2023, 6:19 PMselectHighestVersion() should be fine.
It means select the higher version of the two conflicting ones.Vampire
12/13/2023, 6:21 PMselectHighestVersion() should be it hereCaleb Cushing
12/13/2023, 6:26 PMCaleb Cushing
12/13/2023, 6:26 PMCaleb Cushing
12/13/2023, 6:27 PMCaleb Cushing
12/13/2023, 6:27 PMVampire
12/13/2023, 6:27 PMCaleb Cushing
12/13/2023, 6:28 PMdependencies {
checkstyle(libs.checkstyle)
}
checkstyle = "com.puppycrawl.tools:checkstyle:[8,)"
oh, that's 8 or later πCaleb Cushing
12/13/2023, 6:29 PMVampire
12/13/2023, 6:29 PMCaleb Cushing
12/13/2023, 6:29 PMCaleb Cushing
12/13/2023, 6:30 PMCaleb Cushing
12/13/2023, 6:30 PMCaleb Cushing
12/13/2023, 6:30 PMVampire
12/13/2023, 6:31 PMappVampire
12/13/2023, 6:31 PMVampire
12/13/2023, 6:31 PMCaleb Cushing
12/13/2023, 7:02 PMCaleb Cushing
12/13/2023, 7:02 PMCaleb Cushing
12/13/2023, 7:02 PMVampire
12/14/2023, 2:07 AMdependencies task for the checkstyle configuration or a build --scan to see which will be used.