Skip to content

Commit

Permalink
Make cached return plugin independent of (extenral) class loader and …
Browse files Browse the repository at this point in the history
…precompilation.
  • Loading branch information
raphw committed Nov 9, 2024
1 parent 6dff544 commit e1d96f4
Show file tree
Hide file tree
Showing 22 changed files with 255 additions and 638 deletions.
54 changes: 23 additions & 31 deletions byte-buddy-dep/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,29 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${version.plugin.resources}</version>
<executions>
<execution>
<id>copy-advice-templates</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<outputDirectory>${basedir}/target/destination-folder</outputDirectory>
<resources>
<resource>
<directory>src/main/precompiled-6</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down Expand Up @@ -593,18 +616,6 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>${version.plugin.buildhelper}</version>
<executions>
<execution>
<id>java-6-precompile</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/java-6</source>
</sources>
</configuration>
</execution>
<execution>
<id>java-6-precompile-test</id>
<phase>generate-sources</phase>
Expand All @@ -624,20 +635,6 @@
<artifactId>maven-antrun-plugin</artifactId>
<version>${version.plugin.antrun}</version>
<executions>
<execution>
<id>java-6-precompile-copy</id>
<phase>process-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy todir="${project.basedir}/src/main/precompiled-6">
<fileset dir="${project.build.outputDirectory}" includes="net/bytebuddy/build/CachedReturnPlugin$Advice$*.class" />
</copy>
</target>
</configuration>
</execution>
<execution>
<id>java-6-precompile-test-copy</id>
<phase>process-test-classes</phase>
Expand Down Expand Up @@ -666,11 +663,6 @@
</property>
</activation>
<build>
<resources>
<resource>
<directory>src/main/precompiled-6</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/precompiled-6</directory>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e1d96f4

Please sign in to comment.