Search Gradle plugins

io.github.tomictomek.version-prop

The util to easily define the app version in the property file. Create `version.properties` file at project root level (default) with following properties: `version.code`, `version.major`, `version.minor`, `version.patch`. To define different properties file name or location use `versionPropDef.propertyFile`.

https://github.com/TomicTomek/version-prop-plugin

Sources: https://github.com/TomicTomek/version-prop-plugin.git

Version 1.0.0 (latest)

Created 04 January 2025.

The util to easily define the app version in the property file. Create `version.properties` file at project root level (default) with following properties: `version.code`, `version.major`, `version.minor`, `version.patch`. To define different properties file name or location use `versionPropDef.propertyFile`.

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.tomictomek.version-prop") version "1.0.0"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("io.github.tomictomek.version-prop:io.github.tomictomek.version-prop.gradle.plugin:1.0.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.tomictomek.version-prop")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.tomictomek.version-prop:io.github.tomictomek.version-prop.gradle.plugin:1.0.0")
      }
    }
    
    apply(plugin = "io.github.tomictomek.version-prop")
  • Applying plugins to all subprojects .