I'm in the process of adding subproject to my root project and have been surprised to find that the version information isn't propagated. I've also not had any luck in using afterEvaluate { } or similar to pass the information on, since SemverPlugin itself applies this in an afterEvaluate { } and hasn't run yet. Instead I've found I need to set version = rootProject.version in each module which is a little dull and repetitive.
Would it be reasonable to for SemverPlugin to propagate version numbers to subprojects?
If interested I'm happy to have an attempt at a PR to add this. I'm guessing the preference is to default to current behaviour and add an option to SemverExtension to enable the new behaviour?
I'm in the process of adding subproject to my root project and have been surprised to find that the version information isn't propagated. I've also not had any luck in using
afterEvaluate { }or similar to pass the information on, sinceSemverPluginitself applies this in anafterEvaluate { }and hasn't run yet. Instead I've found I need to setversion = rootProject.versionin each module which is a little dull and repetitive.Would it be reasonable to for
SemverPluginto propagate version numbers to subprojects?If interested I'm happy to have an attempt at a PR to add this. I'm guessing the preference is to default to current behaviour and add an option to
SemverExtensionto enable the new behaviour?