Skip to main content

ihub-version

Henry...Less than 1 minute

ihub-version

plugin description

ihub-versionplugin is version plugin, integrated and strengthened third party version plugin to set project version.

InformationDescription
Plugin IDpub.ihub.plugin.ihub-version
Plugin NameVersion Plugin
Plugin TypeProject[^Project]
Extension NameiHubVersion
Plugin Dependenciesio.freeair.git-versionopen in new window,com.github.ben-manes.versionsopen in new window

plugin functionality

  1. Introducinggit-versionplugin autoconfig project version,Enhanced support to infer version
  2. Introducingben-manes.versionsplugin to check component versions,enhance support for automatic replacement of the latest version

Extended Properties

ExtensionDescriptionDefaultExt[^Ext]Prj[^Prj]Sys[^Sys]Env[^Env]
autoReplaceLaterVersionsAutomatically replace the latest version (versionsopen in new windowplugin enhancement)false
useInferingVersionUsing a extrapolated version number, extrapolating next version number from the latestgit tagsupports tag format{major}.{minor}.{patch}orv{major}.{minor}.{patch}, extrapolation methodpatch + 1false

Plugin Installation

Kotlin
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)
}