allegro/axion-release-plugin

The plugin cannot detect changes in the repository (difference between 1.13.3 -> 1.13.4)

Open

#550 opened on Nov 4, 2022

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Groovy (161 forks)batch import
bughelp wanted

Repository metrics

Stars
 (628 stars)
PR merge metrics
 (Avg merge 2d 7h) (8 merged PRs in 30d)

Description

I have a simple multi project build. I have a "root-project" that includes a "secondary-project". I would like to use the version of the "secondary-project". I used the repository.directory option:

scmVersion {
    repository {
        directory = new File(pathToSecondaryProject)
    }
}

With v1.13.3, it can detect that there are new commits in secondary-project and properly increments the version, but this doesn't work in newer versions, starting with 1.13.4: it gives me the version from the latest tag, without increasing. Setting ignoreUncommittedChanges = false, detects properly the uncommitted changes though. I looked at the commits but can't figure out what could cause the difference. Thank you!

Contributor guide