-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From version 4.7.0 Java 8 compatibility is broken #417
Comments
In reproduce the bug. This is a kbson bug (see jershell/kbson#25) Workaround: In your build.gradle.kts: @CacheableRule
abstract class TargetJvmVersionRule @Inject constructor(val jvmVersion: Int) : ComponentMetadataRule {
@get:Inject abstract val objects: ObjectFactory
override fun execute(context: ComponentMetadataContext) {
context.details.withVariant("apiElements") {
attributes {
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, jvmVersion)
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_API))
}
}
}
}
dependencies {
components {
withModule<TargetJvmVersionRule>("com.github.jershell:kbson") {
params(8)
}
}
...
} HTH |
I still get an error, but somewhat different?
|
I tried issuing bot apiElements and runtimeElements, still no luck
code:
|
Looks like it's complaining about an attribute it didn't ask for so I removed it and it went through, code:
|
What is your gradle version ? Tested on my side with gradle 8.1.1 |
This fixed my issue. Running with gradle 8.2.1
|
I reveive this error:
Please also check #391 same issue (and yes it keeps happening).
I am running on java version "1.8.0_301".
I'd like to update but I can't.
The text was updated successfully, but these errors were encountered: