Project version is now set on start.
This commit is contained in:
parent
62182b489b
commit
483d639dfb
1 changed files with 1 additions and 1 deletions
|
@ -112,12 +112,12 @@ class SemverPlugin : Plugin<Project> {
|
||||||
version.buildMeta = getProperty(config.buildMetaKey, Version.DEFAULT_EMPTY)
|
version.buildMeta = getProperty(config.buildMetaKey, Version.DEFAULT_EMPTY)
|
||||||
version.buildMetaPrefix = getProperty(config.buildMetaPrefixKey, Version.DEFAULT_BUILDMETA_PREFIX)
|
version.buildMetaPrefix = getProperty(config.buildMetaPrefixKey, Version.DEFAULT_BUILDMETA_PREFIX)
|
||||||
version.separator = getProperty(config.separatorKey, Version.DEFAULT_SEPARATOR)
|
version.separator = getProperty(config.separatorKey, Version.DEFAULT_SEPARATOR)
|
||||||
project.version = version.semver
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (exists()) {
|
} else if (exists()) {
|
||||||
throw GradleException("Unable to read version from ${config.properties}")
|
throw GradleException("Unable to read version from ${config.properties}")
|
||||||
}
|
}
|
||||||
|
project.version = version.semver
|
||||||
saveProperties(config, version)
|
saveProperties(config, version)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue