britter / maven-plugin-development

Gradle plugin for building Apache Maven plugins
https://plugins.gradle.org/plugin/de.benediktritter.maven-plugin-development
Apache License 2.0
29 stars 6 forks source link

Add Java cross version testing #92

Open britter opened 1 year ago

britter commented 1 year ago

To prevent problems like the one fixed in #89 in the future.

dariuszkuc commented 1 year ago

TLDR the underlying issue is that org.apache.maven.plugin-tools:maven-plugin-tools relies on ASM which needs to be updated to support target JVM bytecode, e.g. maven-plugin-tools v3.6.1 uses asm v9.1 which supports Java 17.

When doing the update in #89 I tried updating to the latest maven-plugin-tools version (currently v.3.7.1 which supports up to Java 20) but all versions >3.6.1 where throwing failures with missing noaop jar

Execution failed for task ':plugin:compileKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':plugin:compileKotlin'
   > Could not resolve all files for configuration ':plugin:compileClasspath'.
      > Could not find sisu-guice-3.2.3-noaop.jar (org.sonatype.sisu:sisu-guice:3.2.3).
        Searched in the following locations:
            https://repo.maven.apache.org/maven2/org/sonatype/sisu/sisu-guice/3.2.3/sisu-guice-3.2.3-noaop.jar