Skip to content

[Migrate] Migrate streampark-flink-packer from Scala to Java - #4463

Merged
wolfboys merged 5 commits into
apache:devfrom
shangeyao:migrate/4449-flink-packer-scala-to-java
Jul 31, 2026
Merged

[Migrate] Migrate streampark-flink-packer from Scala to Java#4463
wolfboys merged 5 commits into
apache:devfrom
shangeyao:migrate/4449-flink-packer-scala-to-java

Conversation

@shangeyao

Copy link
Copy Markdown
Contributor

Summary

  • Migrate all 34 Scala sources in streampark-flink-packer to Java (0 .scala files remaining)
  • Covers maven/, docker/, pipeline/ (including 6 build pipeline impls), PackerResourceGC, and JUnit 5 tests
  • Preserves public API for console (Java) and flink-client (Scala) callers

Epic: #4408 Stage 2.1
Depends on: #4462 (#4448 sqlclient), #4461 (#4447 shims), #4458 (#4445 common)

Closes #4449

Test plan

  • mvn -pl streampark-flink/streampark-flink-packer -am test — 13 tests, 0 failures (2 Docker tests skipped without daemon)
  • CI build + SonarCloud

Made with Cursor

@shangeyao shangeyao changed the title [Migrate] #4449 Migrate streampark-flink-packer from Scala to Java [Migrate] Migrate streampark-flink-packer from Scala to Java Jul 27, 2026
shangeyao added a commit to shangeyao/streampark that referenced this pull request Jul 27, 2026
Handle InterruptedException in BuildPipeline.launch and check uberJar.delete()
result in MavenTool.

Co-authored-by: Cursor <cursoragent@cursor.com>
@shangeyao
shangeyao force-pushed the migrate/4449-flink-packer-scala-to-java branch from 6ef79ff to efacd93 Compare July 27, 2026 08:05
shangeyao and others added 3 commits July 29, 2026 14:31
Replace all 34 Scala sources in the packer module with Java equivalents,
preserving public API for console and flink-client callers. Tests migrated
to JUnit 5 with Surefire workspace configuration for Maven resolve tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Handle InterruptedException in BuildPipeline.launch and check uberJar.delete()
result in MavenTool.

Co-authored-by: Cursor <cursoragent@cursor.com>
Rebase onto dev after apache#4462 merge; prepare hello-world test image in CI,
replace Throwable catches with specific exception handling, and document
intentionally empty silent watcher callbacks.

Co-authored-by: Cursor <cursoragent@cursor.com>
@shangeyao
shangeyao force-pushed the migrate/4449-flink-packer-scala-to-java branch from efacd93 to 8fef5de Compare July 29, 2026 06:33
DockerImageBuildResponse.podTemplatePaths() now returns a Java Map; convert
via JavaConverters before iterating in KubernetesNativeClientTrait.

Co-authored-by: Cursor <cursoragent@cursor.com>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14</version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version put the virable to properties?

Replace hard-coded jackson-annotations and httpclient versions with
property references aligned to the root POM.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud

Copy link
Copy Markdown

@wolfboys wolfboys left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wolfboys
wolfboys merged commit 8d30256 into apache:dev Jul 31, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Flink] Migrate streampark-flink-packer from Scala to Java

3 participants