Skip to content
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

Separate resolvedRunIvyDeps and transitiveLocalClasspath into two stages when build assembly jar #4565

Merged
merged 8 commits into from
Feb 15, 2025

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Feb 15, 2025

Fixes #4564

This makes it such that changes to upstream modules can avoid re-assembling all the external thirdparty dependencies, whereas previously only changes to the exact module running .assembly would benefit

Tested manually via /Users/lihaoyi/Github/mill/mill-assembly.jar -w integration.assembly in example/javalib/web/3-todo-springboot/.

  • Previously incremental updates after changes to src/ would take ~20s, because integration was a downstream module of the root build and so it wouldn't benefit from incremental assembly construction.
  • With this PR, we separately construct the resolvedIvyAssembly.dest/out.jar containing the bulk of the Spring classfiles before adding transitive local classpath and then the module's own local classpath, and incremental updates take ~1s

@lihaoyi lihaoyi changed the title wip Separate resolvedRunIvyDeps and transitiveLocalClasspath into two stages when build assembly jar Feb 15, 2025
@lihaoyi lihaoyi marked this pull request as ready for review February 15, 2025 00:24
@lihaoyi lihaoyi merged commit bae857b into com-lihaoyi:main Feb 15, 2025
30 of 31 checks passed
@lihaoyi lihaoyi added this to the 0.13.0 milestone Feb 15, 2025
Comment on lines +66 to +68
def upstreamIvyAssemblyClasspath: T[Seq[PathRef]]

def upstreamLocalAssemblyClasspath: T[Seq[PathRef]]
Copy link
Member

Choose a reason for hiding this comment

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

Some scaladoc would be nice.

lihaoyi added a commit that referenced this pull request Feb 15, 2025
…nto two stages when build assembly jar (#4566)

Backport of #4565
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.

Separate resolvedRunIvyDeps and transitiveLocalClasspath into two stages when build assembly jar
2 participants