-
Notifications
You must be signed in to change notification settings - Fork 165
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
Versions of sub-projects independently #175
Comments
@pedromss did you get this to work? There is a setting releaseVersionFile that is supposed to do just this but it doesn't seem to be working. All the sub projects seem to have the same version. |
Didn't get it to work. Still doing what I mentioned above. |
I did actually get it to work with releaseVersionFile & releaseUseGlobalVersion. It does read and update version.sbt in subproject. Hope it helps. |
What version are you using? |
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.4") |
One more point that worked for me is that you should not write build scope in |
Any news on this? Trying to release several sub-projects with independent build.sbt lazy val releaseSettings = Seq(
releaseUseGlobalVersion := false,
releaseVersionFile := file(name.value + "/version.sbt"),
releaseTagName := {
val versionInThisBuild = (version in ThisBuild).value
val versionValue = version.value
s"${name.value}-v${if (releaseUseGlobalVersion.value) versionInThisBuild else versionValue}"
}
)
lazy val root = (project in file(".")).
settings(
releaseSettings
).
aggregate(libA, libB, libC)
lazy val libA = project.settings(releaseSettings)
lazy val libB = project.settings(releaseSettings)
lazy val libC = project.settings(releaseSettings) command: sbt release with-defaults This just releases the root project... Maybe it's just lack of documentation, or an issue with the SBT definition, but i'm not gonna get it to work. @pedromss @Leammas Can someone provide correct configuration / feedback how to enable it? |
Yes, your command would just release the root project. To release a specific project, try:
|
Having spent too much time trying to figure this out too, I finally realized an easy mistake to make is to copy the |
I was trying to do something similar, and kept finding that sbt-release would release SNAPSHOT builds even though it had changed
instead of:
The former still writes |
I found that adding an explicit disable on the release plugin at root level could prevent the release process being run at the root if the intention is to only enable it for some sub-modules |
We got this to work but not like we'd want. We wanted to run it from the root aggregate but it was not working. We ran it from running |
Currently I have a root project whose only function is to aggregate several projects in the same git repository.
However the
version.value
doesn't read the version from the contetnts ofversion.sbt
in each sub-project.I'm forced to do
read(file(s"${name.value}/version.sbt"))
in order to get the version contents.Is there a cleaner way to access the version's of each sub-project?
The text was updated successfully, but these errors were encountered: