Skip to content

Commit 87c3459

Browse files
authored
Merge pull request #318 from twollnik/update_build_setup
Update build setup
2 parents a586d1c + f77bcf0 commit 87c3459

File tree

2 files changed

+47
-19
lines changed

2 files changed

+47
-19
lines changed

Makefile

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1+
# mvn profiles for the different supported
2+
# Spark and Scala versions. Uncomment
3+
# the one that you want to use. You can also
4+
# override the profile on the command line:
5+
# `make MVN_PROFILE=spark-2.4-scala-2.11 build`
6+
MVN_PROFILE := spark-3.0-scala-2.12
7+
# MVN_PROFILE := spark-2.4-scala-2.11
8+
# MVN_PROFILE := spark-2.3-scala-2.11
9+
# MVN_PROFILE := spark-2.2-scala-2.11
10+
11+
# Build the project for specific Spark and
12+
# Scala versions. You can change the profile
13+
# variable to use a different Scala or Spark
14+
# version (see list above).
15+
# If you need more log ouput remove the -q flag.
116
build:
2-
mvn install
3-
mvn clean install -P scala-2.12
17+
mvn clean install -q -P $(MVN_PROFILE)
418

19+
# Deprecated.
520
travis-deploy:
621
gpg --import .travis/private-signing-key.gpg
722
mvn versions:set -DnewVersion=${TRAVIS_TAG}
823
mvn clean deploy -P release --settings .travis/settings.xml
9-
mvn clean deploy -P release -P scala-2.12 --settings .travis/settings.xml
24+
mvn clean deploy -P release -P $(MVN_PROFILE) --settings .travis/settings.xml

pom.xml

+29-16
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>com.amazon.deequ</groupId>
8-
<artifactId>deequ${artifact.scala.version}</artifactId>
8+
<artifactId>deequ${artifact.scala.version}${artifact.spark.version}</artifactId>
99
<version>1.1.0-SNAPSHOT</version>
1010

1111
<name>deequ</name>
@@ -58,17 +58,22 @@
5858
<maven.compiler.source>1.8</maven.compiler.source>
5959
<maven.compiler.target>1.8</maven.compiler.target>
6060
<encoding>UTF-8</encoding>
61-
<scala.major.version>2.11</scala.major.version>
61+
62+
<!-- Scala -->
63+
<scala.major.version>${scala-211.major.version}</scala.major.version>
6264
<scala.version>${scala.major.version}.10</scala.version>
65+
<scala-211.major.version>2.11</scala-211.major.version>
66+
<scala-212.major.version>2.12</scala-212.major.version>
6367
<artifact.scala.version></artifact.scala.version>
6468
<scala-maven-plugin.version>4.4.0</scala-maven-plugin.version>
65-
<!-- Spark -->
6669

70+
<!-- Spark -->
6771
<spark.version>${spark-24.version}</spark.version>
6872
<spark-22.version>2.2.2</spark-22.version>
6973
<spark-23.version>2.3.2</spark-23.version>
7074
<spark-24.version>2.4.2</spark-24.version>
7175
<spark-30.version>3.0.0</spark-30.version>
76+
<artifact.spark.version></artifact.spark.version>
7277
</properties>
7378

7479
<dependencies>
@@ -399,37 +404,45 @@
399404
</build>
400405
</profile>
401406
<profile>
402-
<id>scala-2.12</id>
403-
<properties>
404-
<scala.major.version>2.12</scala.major.version>
405-
<scala.version>${scala.major.version}.10</scala.version>
406-
<artifact.scala.version>_${scala.major.version}</artifact.scala.version>
407-
</properties>
408-
</profile>
409-
<profile>
410-
<id>spark-2.2</id>
407+
<id>spark-2.2-scala-2.11</id>
411408
<properties>
412409
<spark.version>${spark-22.version}</spark.version>
410+
<scala.major.version>${scala-211.major.version}</scala.major.version>
411+
<scala.version>${scala.major.version}.10</scala.version>
412+
<artifact.scala.version>_scala-${scala.major.version}</artifact.scala.version>
413+
<artifact.spark.version>_spark-${spark.version}</artifact.spark.version>
413414
</properties>
414415
</profile>
415416
<profile>
416-
<id>spark-2.3</id>
417+
<id>spark-2.3-scala-2.11</id>
417418
<properties>
418419
<spark.version>${spark-23.version}</spark.version>
420+
<scala.major.version>${scala-211.major.version}</scala.major.version>
421+
<scala.version>${scala.major.version}.10</scala.version>
422+
<artifact.scala.version>_scala-${scala.major.version}</artifact.scala.version>
423+
<artifact.spark.version>_spark-${spark.version}</artifact.spark.version>
419424
</properties>
420425
</profile>
421426
<profile>
422-
<id>spark-2.4</id>
427+
<id>spark-2.4-scala-2.11</id>
423428
<properties>
424429
<spark.version>${spark-24.version}</spark.version>
430+
<scala.major.version>${scala-211.major.version}</scala.major.version>
431+
<scala.version>${scala.major.version}.10</scala.version>
432+
<artifact.scala.version>_scala-${scala.major.version}</artifact.scala.version>
433+
<artifact.spark.version>_spark-${spark.version}</artifact.spark.version>
425434
</properties>
426435
</profile>
427436
<profile>
428-
<id>spark-3.0</id>
437+
<id>spark-3.0-scala-2.12</id>
429438
<properties>
430439
<spark.version>${spark-30.version}</spark.version>
440+
<scala.major.version>${scala-212.major.version}</scala.major.version>
441+
<scala.version>${scala.major.version}.10</scala.version>
442+
<artifact.scala.version>_scala-${scala.major.version}</artifact.scala.version>
443+
<artifact.spark.version>_spark-${spark.version}</artifact.spark.version>
431444
</properties>
432445
</profile>
433446
</profiles>
434447

435-
</project>
448+
</project>

0 commit comments

Comments
 (0)