Skip to content

Commit

Permalink
Attempt multi-release with ASM.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Oct 21, 2024
1 parent 34abe1a commit 4a21948
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
2 changes: 1 addition & 1 deletion byte-buddy-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
<version>${version.plugin.compiler}</version>
<executions>
<execution>
<id>java8-multi-release</id>
<id>multi-release</id>
<goals>
<goal>compile</goal>
</goals>
Expand Down
2 changes: 1 addition & 1 deletion byte-buddy-dep/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
<version>${version.plugin.compiler}</version>
<executions>
<execution>
<id>java8-multi-release</id>
<id>multi-release</id>
<goals>
<goal>compile</goal>
</goals>
Expand Down
44 changes: 44 additions & 0 deletions byte-buddy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -412,5 +412,49 @@
</plugins>
</build>
</profile>
<profile>
<id>multi-release</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>codes.rafael.bytecodeupdate</groupId>
<artifactId>bytecode-update-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>${version.asm}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>multi-release</id>
<goals>
<goal>update-bytecode</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF/versions/9</outputDirectory>
<oldPackage>${shade.source}</oldPackage>
<newPackage>${shade.target}</newPackage>
<artifacts>
<artifact>org\.ow2\.asm:.*</artifact>
</artifacts>
<includes>
<include>org/objectweb/asm/[a-zA-Z\.]+</include>
<include>org/objectweb/asm/signature/[a-zA-Z\.]+</include>
<include>org/objectweb/asm/commons/.*Remapper.*</include>
<include>org/objectweb/asm/commons/ModuleHashesAttribute.class</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,6 @@
<jdk>9</jdk>
</activation>
<properties>
<project.build.outputTimestamp />
<sourcecode.main.version>1.6</sourcecode.main.version>
<sourcecode.test.version>1.6</sourcecode.test.version>
<bytecode.main.version>1.6</bytecode.main.version>
Expand Down

0 comments on commit 4a21948

Please sign in to comment.