Build multiple source & target compatibility

You can do that with the same approach I described here. You’d have one compile task and jar for each Java version.