Pull in correct querymapper dependency based on java version

This commit is contained in:
Travis Burtrum 2018-03-26 12:39:58 -04:00
parent 6ad9a3fb4e
commit 31b1a8b064
3 changed files with 24 additions and 3 deletions

View File

@ -36,7 +36,7 @@
<dependency> <dependency>
<groupId>com.moparisthebest.jdbcmapper</groupId> <groupId>com.moparisthebest.jdbcmapper</groupId>
<artifactId>querymapper</artifactId> <artifactId>querymapper</artifactId>
<classifier>jdk16</classifier> <classifier>${jar.classifier}</classifier>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.moparisthebest.aptIn16</groupId> <groupId>com.moparisthebest.aptIn16</groupId>

View File

@ -16,7 +16,7 @@
<dependency> <dependency>
<groupId>com.moparisthebest.jdbcmapper</groupId> <groupId>com.moparisthebest.jdbcmapper</groupId>
<artifactId>querymapper</artifactId> <artifactId>querymapper</artifactId>
<classifier>jdk16</classifier> <classifier>${jar.classifier}</classifier>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>

23
pom.xml
View File

@ -76,6 +76,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<pushChanges>false</pushChanges> <pushChanges>false</pushChanges>
<localCheckout>true</localCheckout> <localCheckout>true</localCheckout>
<jar.classifier/>
</properties> </properties>
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>
@ -218,7 +219,7 @@
<groupId>com.moparisthebest.jdbcmapper</groupId> <groupId>com.moparisthebest.jdbcmapper</groupId>
<artifactId>querymapper</artifactId> <artifactId>querymapper</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<classifier>jdk16</classifier> <classifier>${jar.classifier}</classifier>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
@ -308,4 +309,24 @@
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>
<profiles>
<profile>
<id>jdk6</id>
<activation>
<jdk>[1.6,1.8)</jdk>
</activation>
<properties>
<jar.classifier>jdk16</jar.classifier>
</properties>
</profile>
<profile>
<id>jdk8</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<jar.classifier/>
</properties>
</profile>
</profiles>
</project> </project>