Skip to content

Commit

Permalink
generate proxies with Java 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
brettwooldridge committed May 8, 2020
1 parent c8d3937 commit 29988f2
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 3 deletions.
15 changes: 15 additions & 0 deletions osx-toolchains.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
<toolchain>
<type>paths</type>
<provides>
<!-- Defines the folders to search for binaries of the "foo-bar" toolset -->
<id>javac</id>
</provides>
<configuration>
<paths>
<path>/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin</path>
</paths>
</configuration>
</toolchain>
</toolchains>
48 changes: 45 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -269,22 +269,65 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<paths>
<id>javac</id>
</paths>
</toolchains>
</configuration>
</plugin>

<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>build-classpath</goal>
</goals>
<configuration>
<outputProperty>maven.compile.classpath</outputProperty>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<!-- Generate proxies -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<extensions>true</extensions>
<executions>
<execution>
<phase>compile</phase>
<!-- phase>generate-test-sources</phase -->
<goals>
<goal>java</goal>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.zaxxer.hikari.util.JavassistProxyFactory</mainClass>
<toolchain>paths</toolchain>
<executable>java</executable>
<arguments>
<argument>-cp</argument>
<argument>${project.build.outputDirectory}:${maven.compile.classpath}</argument>
<argument>com.zaxxer.hikari.util.JavassistProxyFactory</argument>
</arguments>
</configuration>
</plugin>

Expand Down Expand Up @@ -454,7 +497,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<extensions>true</extensions>
<configuration>
<source>1.8</source>
<target>1.8</target>
Expand Down

0 comments on commit 29988f2

Please sign in to comment.