-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WIP: Add support for versioning multiple subprojects #62
Conversation
This means that I'm not sure about the cost/benefit of this. Let me sit on this for a while. |
That's correct. That said, As for no longer using In regards to overriding settings in a single place, that can still be accomplished by using the common settings pattern described in the sbt docs. |
You're right in what you state. But for more context that "should be limited mostly to simple value assignments, since settings don't exhibit dynamic dispatch behavior" was added more or less in response to my frustration to sbt's fundamental limitation, aka sbt/sbt#2899. Put differently I think the common settings pattern shouldn't be necessary: you shouldn't need to define the same 400 settings on each of your 3-30 projects.. That's what the scope hierarchy should've taken care of. |
I agree. The current sbt setting semantics are confusing to common users and frustrating in general. |
Here's an idea: can leave things defined in build scope, and then re-define some (as little as possible) settings in project scope that invoke git if the This is to allow things to (continue to) be re-definable in build scope, limit the default number of invocations of git to 1, but allow this support. |
How would you do that? Any references in a setting in build scope to other settings are automatically scoped to the build scope. As you state in the sbt issue, settings do not have dynamic dispatch semantics.
|
I meant the other way: make project-scoped settings depend on build-scoped settings. But I would have to experiment to see how exactly to do it. Have a good, if not I'll try to get to it. |
I didn't get to it. This is now stale, with a merge conflict on But if we can sort this change out, we could try reviewing it again together. |
Would appreciate having a way to give our subprojects different versions. Having |
Do to so the settings are moved from the build to each project via using
projectSettings
instead ofbuildSettings
and adding a new per project settingdynverTagPrefix
to configure the project version tag prefix.If these changes look acceptable, than I can update the PR to modify the docs and default the prefix to the project name.
This change is