Skip to content

Commit

Permalink
Merge pull request #535 from v-xiangs/xiangs-update-POM-file
Browse files Browse the repository at this point in the history
revise the way that pom file uses version number
  • Loading branch information
xiangyushawn authored Oct 27, 2017
2 parents f52e6c7 + c231b11 commit 5c75147
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.3.5-SNAPSHOT</version>
<version>6.3.5-SNAPSHOT.${jreVersion}-preview</version>

<packaging>jar</packaging>

Expand Down Expand Up @@ -140,6 +140,11 @@
<profiles>
<profile>
<id>build41</id>

<properties>
<jreVersion>jre7</jreVersion>
</properties>

<build>
<plugins>
<plugin>
Expand All @@ -158,7 +163,6 @@
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<finalName>${project.artifactId}-${project.version}.jre7-preview</finalName>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
Expand All @@ -171,9 +175,15 @@

<profile>
<id>build42</id>

<activation>
<activeByDefault>true</activeByDefault>
</activation>

<properties>
<jreVersion>jre8</jreVersion>
</properties>

<build>
<plugins>
<plugin>
Expand All @@ -192,7 +202,6 @@
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<finalName>${project.artifactId}-${project.version}.jre8-preview</finalName>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
Expand Down

0 comments on commit 5c75147

Please sign in to comment.