8000 Find main classes with ClassGraph by lefou · Pull Request #4822 · com-lihaoyi/mill · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Find main classes with ClassGraph #4822

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
merged 8 commits into from
Mar 31, 2025

Conversation

lefou
Copy link
Member
@lefou lefou commented Mar 31, 2025

Since the scalap approach doesn't work for jlink/jpackage modules and scalap seems discontinued in Scala 3 anyways,
this is an attempt to use ClassGraph (https://github.com/classgraph/classgraph) to find main classes.

Added tests for allLocalMainClasses (in the default package).

Removed all alternative implementations to find main classes.

lefou added 5 commits March 31, 2025 11:29
Since the scalap approach doesn't work for jlink/jpackage modules and scalap seems discontinued in Scala 3 anyways,
this is an attempt to use ClassGraph (https://github.com/classgraph/classgraph) to find main classes.

Added tests for allLocalMainClasses (in the default package).
@lefou lefou marked this pull request as ready for review March 31, 2025 10:55
@lefou lefou requested a review from lihaoyi March 31, 2025 11:36
Copy link
Member
@lihaoyi lihaoyi left a comment

Choose a reason for hiding this comment

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

Looks fine to me, if the tests pass on the various languages and JVM versions that gives pretty good confidence

< 8000 a class="author Link--primary text-bold" data-test-selector="pr-timeline-events-commit-actor-profile-link" data-hovercard-type="user" data-hovercard-url="/users/lefou/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="/lefou">lefou added 2 commits March 31, 2025 15:17
@lefou lefou merged commit c04bc68 into com-lihaoyi:main Mar 31, 2025
3 checks passed
@lefou lefou deleted the tr-find-mainclasses-with-classgraph branch March 31, 2025 14:03
@lefou lefou added this to the 0.13.0 milestone Mar 31, 2025
@lefou
Copy link
Member Author
lefou commented Mar 31, 2025

@lihaoyi Do we want this backported to 0.12?

@lihaoyi
Copy link
Member
lihaoyi commented Mar 31, 2025

@lefou sure let's do that, it's not a breaking change and doesn't rely on any of the other new stuff

lefou added a commit to lefou/mill that referenced this pull request Mar 31, 2025
Since the scalap approach doesn't work for jlink/jpackage modules and
scalap seems discontinued in Scala 3 anyways,
this is an attempt to use ClassGraph
(https://github.com/classgraph/classgraph) to find main classes.

Added tests for allLocalMainClasses (in the default package).

Removed all alternative implementations to find main classes.

Original pull request: com-lihaoyi#4822
lefou added a commit to lefou/mill that referenced this pull request Apr 1, 2025
Since the scalap approach doesn't work for jlink/jpackage modules and
scalap seems discontinued in Scala 3 anyways,
this is an attempt to use ClassGraph
(https://github.com/classgraph/classgraph) to find main classes.

Added tests for allLocalMainClasses (in the default package).

Removed all alternative implementations to find main classes.

Original pull request: com-lihaoyi#4822
lefou added a commit that referenced this pull request Apr 1, 2025
Since the scalap approach doesn't work for jlink/jpackage modules and
scalap seems discontinued in Scala 3 anyways,
this is an attempt to use ClassGraph
(https://github.com/classgraph/classgraph) to find main classes.

Added tests for allLocalMainClasses (in the default package).

Removed all alternative implementations to find main classes.

Original pull request: #4822

Pull request: #4832
lefou pushed a commit that referenced this pull request Apr 9, 2025
#4822 introduced `ClassgraphWorkerModule` 
and the corresponding package `classgraph-worker`, but `prepareOffline` does not 
install it, causing offline build to fail. This PR fixes that problem.

Signed-off-by: unlsycn <unlsycn@unlsycn.com>

Pull request: #4897
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.

2 participants
0