ihub-version
...Less than 1 minute
ihub-version
plugin description
ihub-versionplugin is version plugin, integrated and strengthened third party version plugin to set project version.
| Information | Description |
|---|---|
| Plugin ID | pub.ihub.plugin.ihub-version |
| Plugin Name | Version Plugin |
| Plugin Type | Project[^Project] |
| Extension Name | iHubVersion |
| Plugin Dependencies | io.freeair.git-version,com.github.ben-manes.versions |
plugin functionality
- Introducing
git-versionplugin autoconfig project version,Enhanced support to infer version - Introducing
ben-manes.versionsplugin to check component versions,enhance support for automatic replacement of the latest version
Extended Properties
| Extension | Description | Default | Ext[^Ext] | Prj[^Prj] | Sys[^Sys] | Env[^Env] |
|---|---|---|---|---|---|---|
autoReplaceLaterVersions | Automatically replace the latest version (versionsplugin enhancement) | false | ✔ | ✔ | ✔ | ❌ |
useInferingVersion | Using a extrapolated version number, extrapolating next version number from the latestgit tagsupports tag format{major}.{minor}.{patch}orv{major}.{minor}.{patch}, extrapolation methodpatch + 1 | false | ✔ | ✔ | ✔ | ✔ |
Plugin Installation
Kotlin
plugins {
id("pub.ihub.plugin.ihub-version")
}
Groovy
plugins {
id 'pub.ihub.plugin.ihub-version'
}
Note
If base pluginihubis installed, there is no need to install individuallyihub-versionplugin,ihubplugin is already integratedihub-versionplugin.
Configuration Example
Kotlin
iHubVersion {
autoReplaceLaterVersions.set(true)
}
Groovy
iHubVersion {
autoReplaceLateVersions = true
}

