Bob Ham
10/31/2025, 3:39 PMspdxSbom {
targets {
create("release") {
configurations.set(["projectCustReleaseRuntimeClasspath"])
}
}
}
python.pip 'spdx_tools:0.8.3'
tasks.register("convertSpdxRelease", PythonTask) {
...
}
spdxSbomForRelease.finalizedBy convertSpdxRelease
convertSpdxRelease.dependsOn spdxSbomForRelease
and here is the error:
* What went wrong:
A problem occurred evaluating root project 'CustKeyboard_Studio'.
> Could not create task ':spdxSbomForRelease'.
> Configuration with name 'projectCustReleaseRuntimeClasspath' not found.
The task works fine if I comment out the configurations.set(... or if I comment out both the finalizedBy and dependsOn statements.
Anyone have a clue as to why that might be?Niels Doucet
10/31/2025, 3:46 PMprojectCustReleaseRuntimeClasspath configuration does not exist.
Where do you expect this configuration is being created? That's missing from the snippet you shared.Bob Ham
10/31/2025, 3:49 PMWhere do you expect this configuration is being created?I don't have any expectations, I don't usually work with Gradle, this is all new to me.
Bob Ham
10/31/2025, 3:49 PMNiels Doucet
10/31/2025, 3:49 PMBob Ham
10/31/2025, 3:51 PMNiels Doucet
10/31/2025, 3:52 PMVampire
10/31/2025, 3:56 PMBob Ham
10/31/2025, 3:57 PMVampire
10/31/2025, 3:58 PMBob Ham
10/31/2025, 3:59 PMVampire
10/31/2025, 3:59 PMVampire
10/31/2025, 3:59 PMBob Ham
10/31/2025, 4:00 PMVampire
10/31/2025, 4:00 PMBob Ham
10/31/2025, 4:01 PM:spdxSbomForReleaseNiels Doucet
10/31/2025, 4:03 PMconvertSpdxRelease task might be causing some early evaluation in the spdx plugin, but that's really just guessing.
As I said, I think you're not giving us enough context to really get to the bottom of this. I don't think that is because you don't want to, but you don't have enough context yourself.
That's why I would urge you to contact the person that wrote the original configuration for the spdxSbom. Otherwise you'll have to share a lot more about your build (if you can share a build scan, that would be ideal: https://gradle.com/scans/gradle/)Vampire
10/31/2025, 4:03 PMtasks.register("convertSpdxRelease", PythonTask) {
...
}
spdxSbomForRelease.finalizedBy convertSpdxRelease
convertSpdxRelease.dependsOn spdxSbomForRelease
but
def convertSpdxRelease = tasks.register("convertSpdxRelease", PythonTask) {
...
dependsOn tasks.named("spdxSbomForRelease")
}
tasks.named("spdxSbomForRelease") {
finalizedBy convertSpdxRelease
}Bob Ham
10/31/2025, 4:16 PM