Skip to content

Bnd Workspace builds not compatible with Gradle configuration cache #6970

@ejjcase

Description

@ejjcase

Bnd version: 7.2.0-RC1
Gradle version: 9.2.1
JDK version: 17 (Windows)
My project: applies biz.aQute.bnd.workspace

I tried enabling the configuration cache (hadn't tried it before) and then running a Bndrun task. Unfortunately, something deep in Bnd isn't serializable in the way the configuration cache needs it to be.

Configuration cache state could not be cached: field lock of aQute.bnd.memoize.CloseableMemoizingSupplier bean found in field generate of aQute.bnd.build.Project$RefreshData bean found in field data of aQute.bnd.build.Project bean found in field bndProject of aQute.bnd.gradle.BndPlugin bean found in field this$0 of aQute.bnd.gradle.BndPlugin$8 bean found in field compilerArgumentProviders of org.gradle.api.tasks.compile.CompileOptions_Decorated bean found in field capturedArgs of java.lang.invoke.SerializedLambda bean found in field spec of org.gradle.api.internal.tasks.execution.SelfDescribingSpec bean found in task :com.corefiling.magnify:compileJava of type org.gradle.api.tasks.compile.JavaCompile: error writing value of type 'java.util.concurrent.locks.StampedLock'
> Unable to make private void java.util.concurrent.locks.StampedLock.readObject(java.io.ObjectInputStream) throws java.io.IOException,java.lang.ClassNotFoundException accessible: module java.base does not "opens java.util.concurrent.locks" to unnamed module @27076647

The HTML report is easier to read.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions