On Sat, 2023-01-07 at 12:30 -0600, [email protected] wrote:
> Interesting… I have never used multi-releas JARs
> Do you, by chance, have an example of any Maven-Java-based OSS
> projects using it so I could take a look as an example?

Lenny,

with Gradle, this is very easy:
dependencies {
    if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
        implementation project(':TerminalShell8')
    } else {
        implementation project(':TerminalShell')
    }
}

When compiled on Java 8, it pulls the "TerminalShell8" project, which
is just an empty stub doing nothing.
When compiled on Java 9+, it pulls the "TerminalShell" project, which
has the full functionality based on Java 11 bytecode.

Maybe put Migration to Gradle on the list for Shiro 3 as well  🙂

Cheers
Andreas






Reply via email to