-
Notifications
You must be signed in to change notification settings - Fork 56
Scala 2.11 and Scala 2.12 cross-compilation #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d43563d
4548ba6
bc22671
aceb08c
a41e62c
bf675a0
36a5ae7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,9 +4,9 @@ | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <groupId>com.linkedin.sparktfrecord</groupId> | ||
| <artifactId>spark-tfrecord_2.11</artifactId> | ||
| <artifactId>spark-tfrecord_${scala.binary.version}</artifactId> | ||
| <packaging>jar</packaging> | ||
| <version>0.2.2</version> | ||
| <version>0.2.3</version> | ||
| <name>spark-tfrecord</name> | ||
| <url>https://github.com/linkedin/spark-tfrecord</url> | ||
| <description>TensorFlow TFRecord data source for Apache Spark</description> | ||
|
|
@@ -28,13 +28,11 @@ | |
| <properties> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| <scala.maven.version>3.2.2</scala.maven.version> | ||
| <scala.binary.version>2.11</scala.binary.version> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed because cross-compilation plugin requires / recommends they are not defaulted and only set through Profiles. I was able to select a Profile inside IntelliJ and the project compiled in my IDE. |
||
| <scala.compiler.version>2.11.8</scala.compiler.version> | ||
| <scalatest.maven.version>1.0</scalatest.maven.version> | ||
| <scala.test.version>2.2.6</scala.test.version> | ||
| <scala.test.version>3.0.8</scala.test.version> | ||
| <spark.version>2.4.6</spark.version> | ||
| <maven.compiler.version>3.0</maven.compiler.version> | ||
| <java.version>1.8</java.version> | ||
| <spark.version>2.4.6</spark.version> | ||
| <junit.version>4.11</junit.version> | ||
| <tensorflow.hadoop.version>1.15.0</tensorflow.hadoop.version> | ||
| </properties> | ||
|
|
@@ -87,7 +85,7 @@ | |
| <configuration> | ||
| <recompileMode>incremental</recompileMode> | ||
| <useZincServer>true</useZincServer> | ||
| <scalaVersion>${scala.compiler.version}</scalaVersion> | ||
| <scalaVersion>${scala.version}</scalaVersion> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The plugin appears to want this property name. |
||
| <checkMultipleScalaVersions>false</checkMultipleScalaVersions> | ||
| </configuration> | ||
| </plugin> | ||
|
|
@@ -173,6 +171,20 @@ | |
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- Scala cross compilation support: https://github.com/kelnos/scala-cross-maven-plugin --> | ||
| <plugin> | ||
| <groupId>org.spurint.maven.plugins</groupId> | ||
| <artifactId>scala-cross-maven-plugin</artifactId> | ||
| <version>0.2.1</version> | ||
| <executions> | ||
| <execution> | ||
| <id>rewrite-pom</id> | ||
| <goals> | ||
| <goal>rewrite-pom</goal> | ||
| </goals> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </pluginManagement> | ||
| <plugins> | ||
|
|
@@ -223,6 +235,10 @@ | |
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.spurint.maven.plugins</groupId> | ||
| <artifactId>scala-cross-maven-plugin</artifactId> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
|
|
||
|
|
@@ -321,6 +337,23 @@ | |
| </plugins> | ||
| </build> | ||
| </profile> | ||
|
|
||
| <profile> | ||
| <id>scala-2.11</id> | ||
| <properties> | ||
| <scala.binary.version>2.11</scala.binary.version> | ||
| <scala.version>2.11.12</scala.version> | ||
| </properties> | ||
| </profile> | ||
|
|
||
| <profile> | ||
| <id>scala-2.12</id> | ||
| <properties> | ||
| <scala.binary.version>2.12</scala.binary.version> | ||
| <scala.version>2.12.12</scala.version> | ||
| </properties> | ||
| </profile> | ||
|
|
||
| </profiles> | ||
|
|
||
| <developers> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now possible due to the cross-compilation plugin.