Skip to content

build: add Scala 3.8 -Wconf suppression rules#3071

Open
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:scala38-compat-build-config
Open

build: add Scala 3.8 -Wconf suppression rules#3071
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:scala38-compat-build-config

Conversation

@He-Pin

@He-Pin He-Pin commented Jun 15, 2026

Copy link
Copy Markdown
Member

Motivation

The codebase needs to compile with both Scala 3.3.x (current production) and Scala 3.8.4 (forward compatibility). Scala 3.8 introduces new deprecation and syntax warnings that need to be suppressed to maintain clean compilation.

Modification

  • PekkoDisciplinePlugin.scala: add -Wconf rules for Scala 3.8 deprecation warnings (private[this], = _ initializers, context bounds) in both main and test scopes
  • Jdk9.scala / JdkOptions.scala: update JDK-specific compiler options
  • SbtMultiJvmPlugin.scala: minor formatting fix

Result

Scala 3.8 warnings are suppressed via -Wconf, allowing clean compilation without breaking -Werror on both 2.13 and 3.x.

Tests

  • Not run - build config only

References

None - proactive Scala 3.8 forward compatibility

Motivation:
The codebase needs to compile with both Scala 3.3.x (current production)
and Scala 3.8.4 (forward compatibility). Scala 3.8 introduces new
deprecation and syntax warnings that need to be suppressed to maintain
clean compilation.

Modification:
- PekkoDisciplinePlugin: add -Wconf rules for Scala 3.8 deprecation
  warnings (private[this], = _ initializers, context bounds) in both
  main and test scopes
- Jdk9/JdkOptions: update JDK-specific compiler options
- SbtMultiJvmPlugin: minor formatting fix

Result:
Scala 3.8 warnings are suppressed via -Wconf, allowing clean compilation
without breaking -Werror on both 2.13 and 3.x.

Tests:
Not run - build config only

References:
None - proactive Scala 3.8 forward compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant