Skip to content

Propagate version to subprojects #177

@roxspring

Description

@roxspring

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions