cyclonedx-gradle-plugin
cyclonedx-gradle-plugin copied to clipboard
Fix this so it will work in android
Made some changes so it will build a release. Tested in one of our android projects. Results of applying:
> Task :cyclonedxBom
Task :cyclonedxBom in app Starting
Caching disabled for task ':cyclonedxBom' because:
Caching has not been enabled for the task
Task ':cyclonedxBom' is not up-to-date because:
Task has not declared any outputs despite executing actions.
CycloneDX: Parameters
------------------------------------------------------------------------
schemaVersion : VERSION_12
includeBomSerialNumber : true
------------------------------------------------------------------------
CycloneDX: Resolving Dependencies
BOM inclusion for configuration _classStructurekaptDebugAndroidTestKotlin : []
BOM inclusion for configuration _classStructurekaptDebugKotlin : []
BOM inclusion for configuration _classStructurekaptDebugUnitTestKotlin : []
BOM inclusion for configuration _classStructurekaptEspressoKotlin : []
BOM inclusion for configuration _classStructurekaptEspressoUnitTestKotlin : []
BOM inclusion for configuration _classStructurekaptReleaseKotlin : []
BOM inclusion for configuration _classStructurekaptReleaseUnitTestKotlin : []
BOM inclusion for configuration _internal_aapt2_binary : [com.android.tools.build:aapt2:4.0.0-6051327]
BOM inclusion for configuration androidApis : []
BOM inclusion for configuration androidTestApiDependenciesMetadata : []
BOM inclusion for configuration androidTestCompileOnlyDependenciesMetadata : []
BOM inclusion for configuration androidTestDebugApiDependenciesMetadata : []
BOM inclusion for configuration androidTestDebugCompileOnlyDependenciesMetadata : []
BOM inclusion for configuration androidTestDebugImplementationDependenciesMetadata : []
BOM inclusion for configuration androidTestDebugRuntimeOnlyDependenciesMetadata : []
BOM inclusion for configuration androidTestImplementationDependenciesMetadata : [androidx.annotation:annotation:1.0.0, androidx.lifecycle:lifecycle-common:2.0.0, androidx.test.espresso:espresso-core:3.2.0, androidx.test.espresso:espresso-idling-resource:3.2.0, androidx.test.ext:junit:1.1.1, androidx.test:core:1.2.0, androidx.test:monitor:1.2.0, androidx.test:runner:1.2.0, com.google.code.findbugs:jsr305:2.0.1, com.squareup:javawriter:2.1.1, javax.inject:javax.inject:1, junit:junit:4.12, net.sf.kxml:kxml2:2.3.0, org.hamcrest:hamcrest-core:1.3, org.hamcrest:hamcrest-integration:1.3, org.hamcrest:hamcrest-library:1.3]
BOM inclusion for configuration androidTestRuntimeOnlyDependenciesMetadata : []
BOM inclusion for configuration androidTestUtil : []
BOM inclusion for configuration apiDependenciesMetadata : [androidx.annotation:annotation:1.0.0, androidx.arch.core:core-common:2.0.0, androidx.collection:collection:1.0.0, androidx.databinding:databinding-adapters:4.0.0, androidx.databinding:databinding-common:4.0.0, androidx.databinding:databinding-runtime:4.0.0, androidx.databinding:viewbinding:4.0.0, androidx.lifecycle:lifecycle-common:2.0.0, androidx.lifecycle:lifecycle-runtime:2.0.0]
BOM inclusion for configuration archives : []
BOM inclusion for configuration compile : []
BOM inclusion for configuration compileOnlyDependenciesMetadata : []
BOM inclusion for configuration coreLibraryDesugaring : [com.android.tools:desugar_jdk_libs:1.0.9, com.android.tools:desugar_jdk_libs_configuration:1.0.9]
BOM inclusion for configuration debugAndroidTestAnnotationProcessorClasspath : []
BOM inclusion for configuration debugAndroidTestApiDependenciesMetadata : []
BOM inclusion for configuration debugAndroidTestCompile : []
:cyclonedxBom took 823ms
Task :cyclonedxBom in app Finished
> Task :cyclonedxBom FAILED
:cyclonedxBom (Thread[Execution worker for ':',5,main]) completed. Took 2.85 secs.
Still would like to understand FAILED after seeing no errors.
This PR is essentially bypassing the release process, so will not be merged. However, it appears that you've confirmed the current SNAPSHOT code (if released) will actually work, correct?
Also, not sure why you're seeing FAILED. What happens if you enable debug (or whatever Gradle calls it)?
Task :publishPlugins FAILED Publishing plugin org.cyclonedx.bom version 1.2.0
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':publishPlugins'.
Failed to post to server. Server responded with: The user 'Jaff' does not have write permissions to plugin [org.cyclonedx.bom]
Results of execution on actual project:
[2020-09-03T22:07:20.963Z] 22:07:20.701 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] :app:cyclonedxBom (Thread[Execution worker for ':' Thread 31,5,main]) started.
[2020-09-03T22:07:20.964Z] 22:07:20.701 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger]
[2020-09-03T22:07:20.964Z] 22:07:20.701 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :app:cyclonedxBom FAILED
[2020-09-03T22:07:20.964Z] 22:07:20.701 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Task :app:cyclonedxBom' started
[2020-09-03T22:07:20.964Z] 22:07:20.701 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter] Putting task artifact state for task ':app:cyclonedxBom' into context took 0.0 secs.
[2020-09-03T22:07:20.964Z] 22:07:20.702 [INFO] [org.gradle.internal.execution.steps.ResolveCachingStateStep] Caching disabled for task ':app:cyclonedxBom' because:
[2020-09-03T22:07:20.964Z] Build cache is disabled
[2020-09-03T22:07:20.964Z] 22:07:20.702 [DEBUG] [org.gradle.internal.execution.steps.SkipUpToDateStep] Determining if task ':app:cyclonedxBom' is up-to-date
[2020-09-03T22:07:20.964Z] 22:07:20.702 [INFO] [org.gradle.internal.execution.steps.SkipUpToDateStep] Task ':app:cyclonedxBom' is not up-to-date because:
[2020-09-03T22:07:20.964Z] Task has not declared any outputs despite executing actions.
[2020-09-03T22:07:20.964Z] 22:07:20.702 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':app:cyclonedxBom'.
[2020-09-03T22:07:20.964Z] 22:07:20.702 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Execute createBom for :app:cyclonedxBom' started
[2020-09-03T22:07:20.964Z] 22:07:20.706 [INFO] [org.gradle.api.Task] CycloneDX: Parameters
[2020-09-03T22:07:20.964Z] 22:07:20.706 [INFO] [org.gradle.api.Task] ------------------------------------------------------------------------
[2020-09-03T22:07:20.964Z] 22:07:20.706 [INFO] [org.gradle.api.Task] schemaVersion : VERSION_12
[2020-09-03T22:07:20.964Z] 22:07:20.706 [INFO] [org.gradle.api.Task] includeBomSerialNumber : true
[2020-09-03T22:07:20.964Z] 22:07:20.706 [INFO] [org.gradle.api.Task] ------------------------------------------------------------------------
[2020-09-03T22:07:20.966Z] 22:07:20.706 [INFO] [org.gradle.api.Task] CycloneDX: Resolving Dependencies
[2020-09-03T22:07:20.966Z] 22:07:20.728 [DEBUG] [org.gradle.internal.component.model.ComponentAttributeMatcher] Selected match com.android.tools.build:aapt2:3.4.0-5326820 from candidates [com.android.tools.build:aapt2:3.4.0-5326820] for {}
[2020-09-03T22:07:20.966Z] 22:07:20.728 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Resolve files of :app:_internal_aapt2_binary' started
[2020-09-03T22:07:20.966Z] 22:07:20.729 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Resolve files of :app:_internal_aapt2_binary'
[2020-09-03T22:07:20.966Z] 22:07:20.729 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Resolve files of :app:_internal_aapt2_binary' completed
[2020-09-03T22:07:20.966Z] 22:07:20.729 [DEBUG] [org.gradle.api.Task] convertArtifact: working on aapt2
[2020-09-03T22:07:20.966Z] 22:07:20.729 [DEBUG] [org.gradle.api.Task] CycloneDX: Calculating Hashes
[2020-09-03T22:07:20.966Z] 22:07:20.817 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Execute createBom for :app:cyclonedxBom'
[2020-09-03T22:07:20.966Z] 22:07:20.818 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Execute createBom for :app:cyclonedxBom' completed
[2020-09-03T22:07:20.966Z] 22:07:20.820 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter] Removed task artifact state for {} from context.
[2020-09-03T22:07:20.966Z] 22:07:20.820 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Task :app:cyclonedxBom'
[2020-09-03T22:07:20.966Z] 22:07:20.820 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Task :app:cyclonedxBom' completed
[2020-09-03T22:07:20.966Z] 22:07:20.820 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] :app:cyclonedxBom (Thread[Execution worker for ':' Thread 31,5,main]) completed. Took 0.118 secs.
[2020-09-03T22:07:20.966Z] 22:07:20.824 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':' Thread 31: released lock on :
[2020-09-03T22:07:20.966Z] 22:07:20.824 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.363 completed (1 worker(s) in use)
[2020-09-03T22:07:20.966Z] 22:07:20.824 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':' Thread 31: released lock on root.1.363
[2020-09-03T22:07:20.966Z] 22:07:20.825 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 31,5,main]] finished, busy: 1 mins 59.404 secs, idle: 2 mins 56.132 secs
[2020-09-03T22:07:20.966Z] 22:07:20.825 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 12,5,main]] finished, busy: 1.409 secs, idle: 4 mins 54.133 secs
[2020-09-03T22:07:20.966Z] 22:07:20.825 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 7,5,main]] finished, busy: 2.451 secs, idle: 4 mins 53.093 secs
[2020-09-03T22:07:20.966Z] 22:07:20.825 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 4,5,main]] finished, busy: 2.152 secs, idle: 4 mins 53.393 secs
[2020-09-03T22:07:20.966Z] 22:07:20.825 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 28,5,main]] finished, busy: 1.479 secs, idle: 4 mins 54.059 secs
[2020-09-03T22:07:20.966Z] 22:07:20.825 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Daemon worker,5,main]] finished, busy: 1.303 secs, idle: 4 mins 54.232 secs
[2020-09-03T22:07:20.967Z] 22:07:20.826 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 38,5,main]] finished, busy: 1.168 secs, idle: 4 mins 54.367 secs
[2020-09-03T22:07:20.967Z] 22:07:20.826 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 2,5,main]] finished, busy: 1.313 secs, idle: 4 mins 54.233 secs
[2020-09-03T22:07:20.967Z] 22:07:20.826 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 6,5,main]] finished, busy: 1.356 secs, idle: 4 mins 54.189 secs
[2020-09-03T22:07:20.967Z] 22:07:20.826 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':',5,main]] finished, busy: 1.427 secs, idle: 4 mins 54.119 secs
[2020-09-03T22:07:20.967Z] 22:07:20.826 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 18,5,main]] finished, busy: 45.479 secs, idle: 4 mins 10.063 secs
[2020-09-03T22:07:20.967Z] 22:07:20.826 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 27,5,main]] finished, busy: 22.546 secs, idle: 4 mins 32.993 secs
[2020-09-03T22:07:20.968Z] 22:07:20.826 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 14,5,main]] finished, busy: 1.184 secs, idle: 4 mins 54.359 secs
[2020-09-03T22:07:20.968Z] 22:07:20.826 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 17,5,main]] finished, busy: 1.443 secs, idle: 4 mins 54.099 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 19,5,main]] finished, busy: 1.377 secs, idle: 4 mins 54.166 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 3,5,main]] finished, busy: 1.138 secs, idle: 4 mins 54.41 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 13,5,main]] finished, busy: 1.163 secs, idle: 4 mins 54.382 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 30,5,main]] finished, busy: 1.418 secs, idle: 4 mins 54.121 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 37,5,main]] finished, busy: 2.17 secs, idle: 4 mins 53.368 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 26,5,main]] finished, busy: 1 mins 49.873 secs, idle: 3 mins 5.668 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 20,5,main]] finished, busy: 1.392 secs, idle: 4 mins 54.152 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 15,5,main]] finished, busy: 1.304 secs, idle: 4 mins 54.241 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 9,5,main]] finished, busy: 2.331 secs, idle: 4 mins 53.215 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 24,5,main]] finished, busy: 1.362 secs, idle: 4 mins 54.18 secs
[2020-09-03T22:07:20.968Z] 22:07:20.828 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 25,5,main]] finished, busy: 1.537 secs, idle: 4 mins 54.005 secs
[2020-09-03T22:07:20.969Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 39,5,main]] finished, busy: 1.087 secs, idle: 4 mins 54.451 secs
[2020-09-03T22:07:20.969Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 8,5,main]] finished, busy: 1.643 secs, idle: 4 mins 53.903 secs
[2020-09-03T22:07:20.969Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 33,5,main]] finished, busy: 1.28 secs, idle: 4 mins 54.259 secs
[2020-09-03T22:07:20.969Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 36,5,main]] finished, busy: 1.348 secs, idle: 4 mins 54.191 secs
[2020-09-03T22:07:20.969Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 34,5,main]] finished, busy: 1.352 secs, idle: 4 mins 54.187 secs
[2020-09-03T22:07:20.969Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 11,5,main]] finished, busy: 1.625 secs, idle: 4 mins 53.921 secs
[2020-09-03T22:07:20.969Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 32,5,main]] finished, busy: 1.911 secs, idle: 4 mins 53.629 secs
[2020-09-03T22:07:20.970Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 35,5,main]] finished, busy: 1.456 secs, idle: 4 mins 54.083 secs
[2020-09-03T22:07:20.970Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 10,5,main]] finished, busy: 1.684 secs, idle: 4 mins 53.862 secs
[2020-09-03T22:07:20.970Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 21,5,main]] finished, busy: 1.359 secs, idle: 4 mins 54.184 secs
[2020-09-03T22:07:20.970Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 16,5,main]] finished, busy: 2.171 secs, idle: 4 mins 53.375 secs
[2020-09-03T22:07:20.970Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 5,5,main]] finished, busy: 1.161 secs, idle: 4 mins 54.388 secs
[2020-09-03T22:07:20.970Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 29,5,main]] finished, busy: 1.172 secs, idle: 4 mins 54.37 secs
[2020-09-03T22:07:20.970Z] 22:07:20.829 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 22,5,main]] finished, busy: 1.282 secs, idle: 4 mins 54.261 secs
[2020-09-03T22:07:20.970Z] 22:07:20.830 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 23,5,main]] finished, busy: 1.131 secs, idle: 4 mins 54.412 secs
[2020-09-03T22:07:20.970Z] 22:07:20.835 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskExecutionGraph] Timing: Executing the DAG took 4 mins 55.564 secs
[2020-09-03T22:07:20.970Z] 22:07:20.846 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Run tasks'
[2020-09-03T22:07:20.970Z] 22:07:20.846 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Run tasks' completed
[2020-09-03T22:07:20.970Z] 22:07:20.856 [INFO] [org.gradle.api.Project] AAPT2 aapt2-3.4.0-5326820-linux Daemon #0: shutdown
[2020-09-03T22:07:20.970Z] 22:07:20.864 [INFO] [org.gradle.api.Project] AAPT2 aapt2-3.4.0-5326820-linux Daemon #1: shutdown
[2020-09-03T22:07:20.970Z] 22:07:20.870 [INFO] [org.gradle.api.Project] AAPT2 aapt2-3.4.0-5326820-linux Daemon #2: shutdown
[2020-09-03T22:07:20.970Z] 22:07:20.873 [INFO] [org.gradle.api.Project] AAPT2 aapt2-3.4.0-5326820-linux Daemon #3: shutdown
[2020-09-03T22:07:20.970Z] 22:07:20.879 [INFO] [org.gradle.api.Project] AAPT2 aapt2-3.4.0-5326820-linux Daemon #4: shutdown
[2020-09-03T22:07:20.970Z] 22:07:20.881 [INFO] [org.gradle.api.Project] AAPT2 aapt2-3.4.0-5326820-linux Daemon #5: shutdown
[2020-09-03T22:07:20.970Z] 22:07:20.884 [INFO] [org.gradle.api.Project] AAPT2 aapt2-3.4.0-5326820-linux Daemon #6: shutdown
[2020-09-03T22:07:20.970Z] 22:07:20.892 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices] [KOTLIN] Disposed KotlinGradleBuildServices
[2020-09-03T22:07:20.970Z] 22:07:20.892 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use)
[2020-09-03T22:07:20.970Z] 22:07:20.892 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker: released lock on root.1
[2020-09-03T22:07:20.970Z] 22:07:20.893 [INFO] [org.gradle.api.Project] AAPT2 aapt2-3.4.0-5326820-linux Daemon #7: shutdown
[2020-09-03T22:07:20.970Z] 22:07:20.908 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
[2020-09-03T22:07:20.970Z] 22:07:20.909 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
[2020-09-03T22:07:20.970Z] 22:07:20.909 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
[2020-09-03T22:07:20.970Z] 22:07:20.909 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
[2020-09-03T22:07:20.970Z] 22:07:20.910 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:cyclonedxBom'.
[2020-09-03T22:07:20.970Z] 22:07:20.910 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > org.apache.commons.codec.digest.DigestUtils.sha3_256Hex(Ljava/io/InputStream;)Ljava/lang/String;
[2020-09-03T22:07:20.970Z] 22:07:20.910 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
[2020-09-03T22:07:20.970Z] 22:07:20.910 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
[2020-09-03T22:07:20.970Z] 22:07:20.910 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --scan to get full insights.
[2020-09-03T22:07:20.970Z] 22:07:20.911 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
[2020-09-03T22:07:20.970Z] 22:07:20.911 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
[2020-09-03T22:07:20.971Z] 22:07:20.913 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:cyclonedxBom'.
[2020-09-03T22:07:20.971Z] 22:07:20.913 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:151)
[2020-09-03T22:07:20.971Z] 22:07:20.914 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:148)
[2020-09-03T22:07:20.971Z] 22:07:20.914 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)
[2020-09-03T22:07:20.972Z] 22:07:20.914 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:141)
[2020-09-03T22:07:20.972Z] 22:07:20.914 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:75)
[2020-09-03T22:07:20.972Z] 22:07:20.914 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
[2020-09-03T22:07:20.972Z] 22:07:20.914 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)
[2020-09-03T22:07:21.266Z] 22:07:20.914 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
[2020-09-03T22:07:21.267Z] 22:07:20.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
[2020-09-03T22:07:21.267Z] 22:07:20.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
[2020-09-03T22:07:21.267Z] 22:07:20.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
[2020-09-03T22:07:21.269Z] 22:07:20.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
[2020-09-03T22:07:21.270Z] 22:07:20.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
[2020-09-03T22:07:21.270Z] 22:07:20.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
[2020-09-03T22:07:21.270Z] 22:07:20.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
[2020-09-03T22:07:21.270Z] 22:07:20.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:73)
[2020-09-03T22:07:21.270Z] 22:07:20.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
[2020-09-03T22:07:21.270Z] 22:07:20.915 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
[2020-09-03T22:07:21.272Z] 22:07:20.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
[2020-09-03T22:07:21.272Z] 22:07:20.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
[2020-09-03T22:07:21.272Z] 22:07:20.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
[2020-09-03T22:07:21.274Z] 22:07:20.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
[2020-09-03T22:07:21.274Z] 22:07:20.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
[2020-09-03T22:07:21.277Z] 22:07:20.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
[2020-09-03T22:07:21.277Z] 22:07:20.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
[2020-09-03T22:07:21.277Z] 22:07:20.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
[2020-09-03T22:07:21.277Z] 22:07:20.916 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
[2020-09-03T22:07:21.277Z] 22:07:20.917 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
[2020-09-03T22:07:21.277Z] 22:07:20.917 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
[2020-09-03T22:07:21.280Z] 22:07:20.917 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
[2020-09-03T22:07:21.280Z] 22:07:20.917 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
[2020-09-03T22:07:21.280Z] 22:07:20.917 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
[2020-09-03T22:07:21.280Z] 22:07:20.917 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
[2020-09-03T22:07:21.280Z] 22:07:20.917 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
[2020-09-03T22:07:21.280Z] 22:07:20.917 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
[2020-09-03T22:07:21.280Z] 22:07:20.917 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
[2020-09-03T22:07:21.281Z] 22:07:20.918 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
[2020-09-03T22:07:21.281Z] 22:07:20.918 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
[2020-09-03T22:07:21.281Z] 22:07:20.918 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
[2020-09-03T22:07:21.282Z] 22:07:20.918 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha3_256Hex(Ljava/io/InputStream;)Ljava/lang/String;
[2020-09-03T22:07:21.282Z] 22:07:20.918 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.cyclonedx.util.BomUtils.calculateHashes(BomUtils.java:69)
[2020-09-03T22:07:21.282Z] 22:07:20.918 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.cyclonedx.gradle.CycloneDxTask.convertArtifact(CycloneDxTask.java:268)
[2020-09-03T22:07:21.282Z] 22:07:20.918 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.cyclonedx.gradle.CycloneDxTask.createBom(CycloneDxTask.java:149)
[2020-09-03T22:07:21.282Z] 22:07:20.918 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
[2020-09-03T22:07:21.282Z] 22:07:20.918 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:48)
[2020-09-03T22:07:21.282Z] 22:07:20.918 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
[2020-09-03T22:07:21.282Z] 22:07:20.919 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
[2020-09-03T22:07:21.283Z] 22:07:20.919 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:702)
@Jaff have you found a solution this problem:
Caused by: java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha3_256Hex(Ljava/io/InputStream;)Ljava/lang/String;
Please share if you did, thanks!