Skip to content

Commit

Permalink
[FLINK-29741][scala] Delete flink-scala and flink-streaming-scala mod…
Browse files Browse the repository at this point in the history
…ules
  • Loading branch information
codenohup authored Sep 26, 2024
1 parent 2f8b2d8 commit a27070a
Show file tree
Hide file tree
Showing 502 changed files with 32 additions and 35,964 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ mvn javadoc:aggregate -B \
-Denforcer.skip=true \
-Dheader="<a href=\"http://flink.apache.org/\" target=\"_top\"><h1>Back to Flink Website</h1></a> <script>var _paq=window._paq=window._paq||[];_paq.push([\"disableCookies\"]),_paq.push([\"setDomains\",[\"*.flink.apache.org\",\"*.nightlies.apache.org/flink\"]]),_paq.push([\"trackPageView\"]),_paq.push([\"enableLinkTracking\"]),function(){var u=\"//matomo.privacy.apache.org/\";_paq.push([\"setTrackerUrl\",u+\"matomo.php\"]),_paq.push([\"setSiteId\",\"1\"]);var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s)}();</script>"
mv target/site/apidocs docs/target/api/java
mvn -pl flink-scala scala:doc -B \
-Dcheckstyle.skip=true \
-Dspotless.skip=true \
-Denforcer.skip=true
mv flink-scala/target/site/scaladocs docs/target/api/scala

# build python docs
if [ -f ./flink-python/dev/lint-python.sh ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
* basic types, tuples, and POJOs.
*
* <p>The set of serializers registered with Kryo via {@link Kryo#register}, with their respective
* IDs, depends on whether flink-java or flink-scala are on the classpath. This is for
* backwards-compatibility reasons.
* IDs, depends on whether flink-java are on the classpath. This is for backwards-compatibility
* reasons.
*
* <p>If neither are available (which should only apply to tests in flink-core), then:
*
Expand All @@ -82,15 +82,6 @@
* <li>10+ are used for user-defined registration
* </ul>
*
* <p>If flink-scala is available, then:
*
* <ul>
* <li>0-9 are used for Java primitives
* <li>10-72 are used for Scala classes
* <li>73-84 are used for Java classes
* <li>85+ are used for user-defined registration
* </ul>
*
* <p>If *only* flink-java is available, then:
*
* <ul>
Expand Down
45 changes: 29 additions & 16 deletions flink-dist-scala/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,43 @@ under the License.

<dependencies>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-scala_${scala.binary.version}</artifactId>
<version>${project.version}</version>
<groupId>org.scala-lang</groupId>
<artifactId>scala-reflect</artifactId>
<optional>${flink.markBundledAsOptional}</optional>
<exclusions>
<exclusion>
<!-- transitive Flink dependencies are provided at runtime -->
<groupId>org.apache.flink</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-scala_${scala.binary.version}</artifactId>
<version>${project.version}</version>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<optional>${flink.markBundledAsOptional}</optional>
</dependency>

<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-compiler</artifactId>
<optional>${flink.markBundledAsOptional}</optional>
</dependency>

<!--
The KryoSerializer dynamically loads Kryo instances via Chill and requires that Chill
is in the classpath.
-->
<dependency>
<groupId>com.twitter</groupId>
<artifactId>chill_${scala.binary.version}</artifactId>
<version>${chill.version}</version>
<!-- exclusions for dependency conversion -->
<exclusions>
<exclusion>
<!-- transitive Flink dependencies are provided at runtime -->
<groupId>org.apache.flink</groupId>
<artifactId>*</artifactId>
<groupId>com.esotericsoftware.kryo</groupId>
<artifactId>kryo</artifactId>
</exclusion>
<exclusion>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
</exclusion>
</exclusions>
<optional>${flink.markBundledAsOptional}</optional>
</dependency>

<dependency>
Expand Down
14 changes: 0 additions & 14 deletions flink-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,20 +487,6 @@ under the License.

<dependencyManagement>
<dependencies>
<dependency>
<!-- Provided by flink-dist-scala -->
<groupId>org.apache.flink</groupId>
<artifactId>flink-scala_${scala.binary.version}</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<!-- Provided by flink-dist-scala -->
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-scala_${scala.binary.version}</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion flink-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ under the License.

<build>
<plugins>
<!-- Because flink-scala, flink-avro and flink-hadoop-compatibility uses it in tests -->
<!-- Because flink-avro and flink-hadoop-compatibility uses it in tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down
Loading

0 comments on commit a27070a

Please sign in to comment.