-
-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested
Description
Describe the bug
when running the cyclonedxBom Task it fails following error in my project using Gradle 9.0 and configuration cache enabled in gradle.properties -> org.gradle.configuration-cache=true
> Task :myapp-server:cyclonedxBom FAILED
Caching disabled for task ':myapp-server:cyclonedxBom' because:
Caching has not been enabled for the task
Task ':myapp-server:cyclonedxBom' is not up-to-date because:
Value of input property 'componentVersion' has changed for task ':myapp-server:cyclonedxBom'
CycloneDX: Parameters
------------------------------------------------------------------------
schemaVersion : 1.6
includeLicenseText : false
includeBomSerialNumber : true
includeConfigs : []
skipConfigs : []
skipProjects : []
includeMetadataResolution : true
destination : /git/myapp-server/myapp-server/build/reports
outputName : application.cdx
componentName : myapp-server
componentVersion : 1.2.4
outputFormat : json
projectType : application
------------------------------------------------------------------------
CycloneDX: Resolving Dependencies
For project myapp-server following configurations are in scope to build the dependency graph: annotationProcessor,compileClasspath,developmentOnly,jacocoAgent,jacocoAnt,jaxb,jaxbext,productionRuntimeClasspath,runtimeClasspath,testAndDevelopmentOnly,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath
1 problem was found storing the configuration cache.
- Plugin class 'org.gradle.api.plugins.JavaBasePlugin': execution of task ':myapp-server:cyclonedxBom' caused invocation of 'Task.project' in other task at execution time which is unsupported with the configuration cache.
See https://docs.gradle.org/9.0.0/userguide/configuration_cache_requirements.html#config_cache:requirements:use_project_during_execution
See the complete report at file:///git/myapp-server/build/reports/configuration-cache/7tc2g1u7k4ct8jy22ta991n76/btzjsleomwrc5sveic9voqiz1/configuration-cache-report.html
[Incubating] Problems report is available at: file:///git/myapp-server/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':myapp-server:cyclonedxBom'.
> Could not resolve all dependencies for configuration ':myapp-server:testCompileClasspath'.
> Could not create task ':myapp-server:compileTestJava'.
> Execution of task ':myapp-server:cyclonedxBom' caused invocation of 'Task.project' by task ':myapp-server:compileTestJava' at execution time which is unsupported with the configuration cache.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
To Reproduce
- configure configuration cache
- enable plugin
- rund plugin task
Expected behavior
task should execute without error
Environment (please complete the following information):
- OS: Ubuntu 22.04
- Gradle version: 9.0
- CycloneDX Plugin version: 2.3.1
Contribution
- I am willing to provide a fix
- I will wait until somebody else fixes it
aggeboe, lachja, TheMrMilchmann, Redhab and Tatunchamon
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested