Skip to content

Port DependencyAnalyzer plugin to Scala 3 #1640

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

Merged

Conversation

WojciechMazur
Copy link
Contributor

@WojciechMazur WojciechMazur commented Oct 31, 2024

Description

  • Port dependency analyzer compiler plugin to Scala 3
  • Setup compiler patches (dt_patches) for Scala 3
  • Setup safe subset of dangerous_test_thirdparty_version.sh - old script is no longer working, the applied patches are no longer applicable, thus always using the default version for given major Scala version
  • Unify and share tests between Scala 2/3 dependency analyzer tests

Motivation

Feature parity between Scala 2 and Scala 3 support. It's probably the last missing (major) piece.

Copy link
Collaborator

@simuons simuons left a comment

Choose a reason for hiding this comment

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

Thanks, @WojciechMazur, for taking this long standing issue.

Please take a look at one minor comment and also please resolve conflict.

Overall all looks good. Thanks.

@@ -114,6 +115,8 @@ class AstUsedJarFinderTest extends AnyFunSuite {

expectedUnusedDeps.foreach { dep =>
val expectedError = s"Target '$dep' is specified as a dependency to ${TestUtil.defaultTarget} but isn't used, please remove it from the deps."
println(errors)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These were only used when debugging, I forgot to remove them. Fixed now

@WojciechMazur WojciechMazur force-pushed the scala3/dependency-analyzer branch from 366f94a to 779d02a Compare November 8, 2024 10:15
@liucijus liucijus merged commit 9fccc25 into bazel-contrib:master Nov 11, 2024
2 checks passed
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.

3 participants