rgoldberg
(Ross Goldberg)
1
In a build.gradle.kts
, I have the following:
dependencies {
implementation("my-group", "my-name", "0.1") {
attributes {
attribute(Attribute.of("attribute-name", Boolean::class.java), true)
}
}
}
Which produces the following error when building with Gradle 5.5.1:
Unexpected type for attribute 'attribute-name'. Expected boolean but was:java.lang.Boolean
How can I fix this?
1 Like
Joffrey
(Joffrey BION)
2
I’m having the same problem, did you find a solution in the end?
rgoldberg
(Ross Goldberg)
3
Sorry, I didn’t find a solution.
I didn’t look much for one as I wound up not using attributes.
Good luck.
iharh
(Ihar Hancharenka)
4
I’ve just seen SO answer recommending to replace of “Boolean::class.java” by “Boolean::class.javaObjectType”
1 Like