roughly speaking you'd build the cross-version JAR...
# tornadofx
c
roughly speaking you'd build the cross-version JAR as-is. it would compile with both versions. that would be one maven module. there would be a maven module or profile for jdk8 which would build a JAR that included the cross-version contents. there would also be a maven module or profile for jdk9.