Skip to content

Commit

Permalink
Added missing dependencies (#1577)
Browse files Browse the repository at this point in the history
* Added missing dependencies.

* Ant needs to be told which dependencies go on the classpath and modulepath.

* Removed unused classpath entry.
  • Loading branch information
cowwoc authored May 8, 2020
1 parent 2cb6381 commit 1d05b0e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
24 changes: 19 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@
<alias>db</alias>
<name>postgres:11</name>
<run>
<env><POSTGRES_PASSWORD>password</POSTGRES_PASSWORD></env>
<env>
<POSTGRES_PASSWORD>password</POSTGRES_PASSWORD>
</env>
<wait>
<log>database system is ready to accept connections</log>
<time>20000</time>
Expand Down Expand Up @@ -509,7 +511,9 @@
<version>3.0.1</version>
<configuration>
<show>public</show>
<excludePackageNames>com.zaxxer.hikari.hibernate:com.zaxxer.hikari.metrics.*:com.zaxxer.hikari.pool:com.zaxxer.hikari.util</excludePackageNames>
<excludePackageNames>
com.zaxxer.hikari.hibernate:com.zaxxer.hikari.metrics.*:com.zaxxer.hikari.pool:com.zaxxer.hikari.util
</excludePackageNames>
<attach>true</attach>
<maxmemory>1024m</maxmemory>
</configuration>
Expand Down Expand Up @@ -557,6 +561,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>compile-java11</id>
Expand All @@ -565,14 +570,23 @@
<goal>run</goal>
</goals>
<configuration>
<tasks>
<target>
<mkdir dir="${java11.build.outputDirectory}"/>
<copy todir="${java11.build.outputDirectory}">
<fileset dir="${project.build.outputDirectory}"/>
</copy>
<property name="classpath" value="${org.hdrhistogram:HdrHistogram:jar}:
${org.latencyutils:LatencyUtils:jar}:${org.hibernate.javax.persistence:hibernate-jpa:jar}:
${org.hibernate.common:hibernate-commons-annotations:jar}:${antlr:antlr:jar}:
${org.jboss:jandex:jar}:${com.fasterxml:classmate:jar}:${dom4j:dom4j:jar}"/>
"
<property name="modulepath" value="${org.slf4j:slf4j-api:jar}:
${org.javassist:javassist:jar}:${io.micrometer:micrometer-core:jar}:
${org.hibernate:hibernate-core:jar}:${io.dropwizard.metrics:metrics-core:jar}:
${io.dropwizard.metrics:metrics-healthchecks:jar}:${io.prometheus:simpleclient:jar}"/>
<javac srcdir="${java11.sourceDirectory}" destdir="${java11.build.outputDirectory}"
classpath="${project.build.outputDirectory}" includeantruntime="false"/>
</tasks>
classpath="${classpath}" modulepath="${modulepath}" includeantruntime="false"/>
</target>
</configuration>
</execution>
</executions>
Expand Down
11 changes: 11 additions & 0 deletions src/main/java11/module-info.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
module com.zaxxer.hikari
{
requires hibernate.core;
requires java.sql;
requires java.management;
requires java.naming;
requires javassist;
requires simpleclient;
requires slf4j.api;
requires metrics.core;
requires metrics.healthchecks;
requires micrometer.core;

exports com.zaxxer.hikari;
exports com.zaxxer.hikari.hibernate;
exports com.zaxxer.hikari.metrics;
Expand Down

0 comments on commit 1d05b0e

Please sign in to comment.