Skip to content

Commit

Permalink
Make jars multi-release for Java 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Oct 15, 2024
1 parent 8a38f33 commit a47761a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions byte-buddy-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,32 @@
</plugins>
</build>
</profile>
<profile>
<id>java8MultiRelease</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.plugin.compiler}</version>
<executions>
<execution>
<id>java8MultiRelease</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF/versions/8</outputDirectory>
<target>1.8</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
27 changes: 27 additions & 0 deletions byte-buddy-dep/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,33 @@
</plugins>
</build>
</profile>
<profile>
<id>java8MultiRelease</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.plugin.compiler}</version>
<executions>
<execution>
<id>java8MultiRelease</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF/versions/8</outputDirectory>
<target>1.8</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Precompilation configuration for Java 1.4 class files. -->
<profile>
<id>java-4-precompile</id>
Expand Down

0 comments on commit a47761a

Please sign in to comment.