Slackbot
12/15/2022, 2:06 PMjschneider
12/15/2022, 2:07 PMdependencies.attributesSchema {
attributes.clear()
}
but can’t figure out how to silence this featureVampire
12/15/2022, 2:25 PMVampire
12/15/2022, 2:26 PMmelix
12/15/2022, 2:27 PMjschneider
12/15/2022, 3:09 PM--release 8
when using text blocks even though the bytecode of a text block is indistinguishable from a concatenated string. it’s internal only to this projectjschneider
12/15/2022, 3:10 PMjschneider
12/15/2022, 3:10 PMjschneider
12/15/2022, 3:11 PMtestImplementation
to accept “java 17” dependencies?Vampire
12/15/2022, 3:12 PMmelix
12/15/2022, 3:12 PMjschneider
12/15/2022, 3:12 PMjschneider
12/15/2022, 3:13 PMBut how do you make it that the class version works?bytecodes were postprocessed to ensure they were java 8 compatible after compilation, and the version byte was manipulated as part of this. so gradle thinks it compiled 17, but the class file itself will be 8 compatible
Vampire
12/15/2022, 3:14 PM--release
will also not work?Vampire
12/15/2022, 3:15 PMjschneider
12/15/2022, 3:15 PMjschneider
12/15/2022, 3:15 PMmelix
12/15/2022, 3:15 PMconfigurations.all {
if (it.canBeConsumed) {
it.outgoing.attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8)
}
}
melix
12/15/2022, 3:16 PMjschneider
12/15/2022, 3:16 PMVampire
12/15/2022, 3:20 PMoutgoing
I think thoughVampire
12/15/2022, 3:20 PMoutgoingVariants
taskjschneider
12/15/2022, 3:21 PMYou can also check the result using thegood to knowtaskoutgoingVariants
jschneider
12/15/2022, 3:23 PMconfigurations.all {
if (isCanBeConsumed) {
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8)
}
}
melix
12/16/2022, 1:48 PM