This message was deleted.
# community-support
s
This message was deleted.
d
blows up from this call -> https://github.com/britter/maven-plugin-development/blob/main/subprojects/plugin/s[…]en/plugin/development/task/GenerateMavenPluginDescriptorTask.kt
Copy code
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 61
so the plugin depends on https://github.com/apache/maven-plugin-tools v3.6.0 which uses very old ASM version (supports Java 11) v3.6.1 updates the ASM version to support Java 17
j
You can upgrade to
3.6.1
or higher on you plugin classpath. If you use buildSrc (or included plugin build) add this to your
buildSrc/build.gradle
Copy code
dependencies {
  implementation(platform("org.apache.maven.plugin-tools:maven-plugin-tools:3.6.4"))
}
If that fixes the issue, I think @benedikt will be happily accepting a PR to upgrade the dependency version in the plugin.
👍 2
e
out of curiosity, I just gave it a spin -
buildSrc
platform constraints didn't propagated to the projects for me
instead, adding this to the buildscript of a using the plugin did work:
Copy code
buildscript {
    dependencies {
        classpath(platform("org.apache.maven.plugin-tools:maven-plugin-tools:3.6.4"))
this caused another issue due to a dependency changing their classifiers across releases, which seemed to be fixable with
Copy code
buildscript {
    configurations.classpath.resolutionStrategy.eachDependency {
        if (requested.group == "org.sonatype.sisu" && requested.name == "sisu-guice") artifactSelection {
            if (requestedSelectors.any { it.type == "jar" && it.classifier == "noaop" })
                selectArtifact("jar", null, "no_aop")
I didn't actually test if anything about the plugin worked, just that
./gradlew buildEnvironment
showed that the expected dependencies were resolved
When updating to 3.6.2+ getting failures with that
noaop
jar
Copy code
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>