Skip to content

Commit

Permalink
Switch to using Maven Toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Feb 28, 2020
1 parent 9e82d8e commit 750ee3d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
4 changes: 2 additions & 2 deletions hibernate-types-52/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
</dependencies>

<properties>
<jdk.version>8</jdk.version>

<hibernate.version>5.4.11.Final</hibernate.version>
<!--<hibernate.version>5.2.18.Final</hibernate.version>-->
<postgresql.version>9.4-1202-jdbc41</postgresql.version>
Expand All @@ -66,8 +68,6 @@
<jackson.version>2.9.10.1</jackson.version>
<guava.version>27.1-jre</guava.version>

<jdk.version>8</jdk.version>
<jdk>${env.JAVA_HOME_8}</jdk>
</properties>

<build>
Expand Down
29 changes: 23 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</dependency>

<dependency>
<groupId>com.oracle.ojdbc</groupId>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>${oracle.version}</version>
<scope>test</scope>
Expand All @@ -131,6 +131,25 @@
</testResources>

<plugins>
<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>
<jdk>
<version>${jdk.version}</version>
</jdk>
</toolchains>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -140,8 +159,6 @@
<target>${jdk.version}</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<executable>${jdk}/bin/javac</executable>
<fork>true</fork>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -261,11 +278,11 @@

<properties>
<jdk.version>6</jdk.version>
<jdk>${env.JAVA_HOME_6}</jdk>
<jdk8>${env.JAVA_HOME_8}</jdk8>
<reuseForks>false</reuseForks>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<maven-toolchains-plugin.version>3.0.0</maven-toolchains-plugin.version>
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
<sonar-maven-plugin.version>2.2</sonar-maven-plugin.version>
Expand All @@ -275,7 +292,7 @@
<maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<maven-release-plugin.version>2.5.2</maven-release-plugin.version>
<maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>

<slf4j.version>1.7.25</slf4j.version>
Expand Down

0 comments on commit 750ee3d

Please sign in to comment.