Maven plugin implementation of the Java Downgrader Gradle plugin. The original file will be stored as with a -pre-downgrade suffix and the downgraded file will be stored under the original name.
inputFile- The input file to downgrade. Defaults to${project.build.directory}/${project.build.finalName}.jaroutputSuffix- The suffix to append to the original file. Defaults to-pre-downgradetargetVersion- The target class version to downgrade to. Defaults to52(Java 8)copyRuntimeClasses- If the runtime classes should be copied to the output file. Defaults totrue(currently not working)
<plugin>
<groupId>dev.tr7zw.javadowngrader.maven</groupId>
<artifactId>javadowngrader-maven-plugin</artifactId>
<version>0.0.1-SNAPSHOT</version>
<executions>
<execution>
<id>javadowngrade</id>
<goals>
<goal>javadowngrade</goal>
</goals>
</execution>
</executions>
</plugin>When combining with shading make sure to place the plugin after the shading plugin in the build process, so the shaded jar is downgraded.