-
Notifications
You must be signed in to change notification settings - Fork 560
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
Update admin
to no longer aggregate
on common
#27763
base: main
Are you sure you want to change the base?
Conversation
In SBT, `aggregate` means: > Aggregation means that running a task on the aggregate project will also run it on the aggregated projects. This means if a task is run on the `admin` project, it'll also be run on `common`. This isn't necessary as we only need to compile common. Co-authored-by: Joe <[email protected]> Co-authored-by: Julia <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be aware that this means running the tests for adin won't also run the tests for common, which is probably the behaviour people expect.
Without knowing more about the error you're solving here I can't make an alternative suggestion, but make sure you aren't missing any important behaviour after doing this!
Is this true? Each Play app |
frontend/project/ProjectSettings.scala Lines 144 to 146 in 379308c
Typically So the "with tests" helper is about code dependencies (dependsOn), aggregate is about task dependencies (aggregate). Depends on is about making source code from other projects available, and aggregate is about making sure sbt commands are run across multiple projects at once. In this case, by removing the common aggregation, you're saying that runnings |
In SBT,
aggregate
means:This means if a task is run on the
admin
project, it'll also be run oncommon
. This isn't necessary as we only need to compile common.What is the value of this and can you measure success?
What does this change?
Screenshots
Checklist
data/database
files generated by tests are committed with this PR (the tests will fail in CI if you've forgotten to do this)