ajoberstar / reckon

Infer a project's version from your Git repository.
Apache License 2.0
185 stars 28 forks source link

Mutli-Project Question #111

Closed acmitch closed 5 years ago

acmitch commented 5 years ago

When I build a sub-project, reckon is building with an unclean version (seeing a timestamp instead of a hash). Also, all files have been committed.

gradlew :json-cmm-to-avro-stream:clean build

Reckoned version: 0.1.0-rc.0.24+20190426T011539Z

I don't understand why I am getting this. I have a suspicion this has something to do with defining the reckon configuration in my subproject build.gradle file.

/json-cmm-to-avro-stream/build.gradle

reckon {
    scopeFromProp()
    stageFromProp('rc', 'final')
}

/build.gradle

apply plugin: "org.ajoberstar.reckon"

If I try to apply the plugin in my subproject it gives me an error org.ajoberstar.reckon can only be applied to the root project.. How should I correctly configure reckon for subprojects?

acmitch commented 5 years ago

Actaully I think this is a Jenkins issue. Looks like how it is checking out the branch is making it unclean.