Revert "[FLINK-10911][scala-shell] Enable flink-scala-shell with Scala 2.12"

This reverts commit b7ce6119.

Our per-push CI does not cover Scala 2.12 so we didn't notice that
ScalaShellITCase does not actually pass.
上级 aed8c195
......@@ -143,12 +143,6 @@ under the License.
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-scala-shell_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
<!-- Default file system support. The Hadoop and MapR dependencies -->
<!-- are optional, so not being added to the dist jar -->
......@@ -448,6 +442,24 @@ under the License.
</dependencies>
<profiles>
<profile>
<id>scala-2.11</id>
<activation>
<property>
<name>!scala-2.12</name>
</property>
</activation>
<!-- Scala Shell doesn't currently work with Scala 2.12 so only include
when building for Scala 2.11. -->
<dependencies>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-scala-shell_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</profile>
<profile>
<!-- Copies that shaded Hadoop uber jar to the dist folder. -->
<id>include-hadoop</id>
......
......@@ -72,7 +72,6 @@ under the License.
<module>flink-end-to-end-tests</module>
<module>flink-test-utils-parent</module>
<module>flink-state-backends</module>
<module>flink-scala-shell</module>
<module>flink-libraries</module>
<module>flink-table</module>
<module>flink-quickstart</module>
......@@ -779,6 +778,11 @@ under the License.
<name>!scala-2.12</name>
</property>
</activation>
<!-- Scala Shell doesn't currently work with Scala 2.12 so only include
when building for Scala 2.11. -->
<modules>
<module>flink-scala-shell</module>
</modules>
<build>
<plugins>
<!-- make sure we don't have any _2.10 or _2.12 dependencies when building
......@@ -823,6 +827,29 @@ under the License.
</activation>
<build>
<plugins>
<!-- don't run tests that don't work for Scala 2.12, because not all of the
required test dependencies are available for Scala 2.12. The Kafka 0.9 connector
still works with Scala 2.12 because it only needs the scala-version-independent
kafka-clients dependency at runtime. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>regex-property</id>
<goals>
<goal>regex-property</goal>
</goals>
<configuration>
<name>maven.test.skip</name>
<value>${project.artifactId}</value>
<regex>(flink-scala-shell.*)</regex>
<replacement>true</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>
<!-- make sure we don't have any _2.10 or _2.11 dependencies when building
for Scala 2.12 -->
<plugin>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册