micrometer
micrometer copied to clipboard
"./gradlew clean check" fails
./gradlew clean check fails as follows:
...
* What went wrong:
Could not determine the dependencies of task ':micrometer-osgi-test:test'.
> Could not create task ':micrometer-osgi-test:testingBundle'.
> Could not create task of type 'Bundle'.
> Could not create an instance of type aQute.bnd.gradle.BundleTaskExtension.
> Cannot change attributes of configuration ':micrometer-osgi-test:compileClasspath' after it has been locked for mutation
...
Thank you for letting us know!
I was able to repro it even with simply ./gradlew check. ./gradlew test is ok though. It seems the order of configuring things is different depending on which task you want to execute.
Until this is fixed, I have been using the default task (which is build) via ./gradlew, which will also run the check task. I've updated the contributing guide to not suggest using ./gradlew check for now.
I updated the issue title to reflect this is only a problem with JDK 11 with #5735 having been merged.