This message was deleted.
# community-support
s
This message was deleted.
v
None I know of, but it's pretty simple to just manually do it. Did you try and struggle with something in particular?
e
No, was just curious if there was something out there
v
As I said, I'm not aware of, but it is pretty simple. There might a plugin exist, but you just have to • declare a feature variant per version • if based on the same source set but just different dependencies ◦ register the variants from the same source set (
main
) ◦ set the
TargetJvmVersion
attribute on the two outgoing configurations of each variant • if based on different source sets too ◦ register the variants from dedicated source sets per variant ◦ configure the compile task for the variant with an according
javaCompiler
that will also automatically set the attribute correctly • set the same capability on the variants as is set on the main variant, so that consumer projects automatically choose the right variant only based on the Java compatibility