Search Gradle plugins

com.prot.versioninfo

Generate version-info.properties file at build time to capture project version, build time and revision info

https://github.com/zpc888/jar-version-info-gradle-plugin

Sources: https://github.com/zpc888/jar-version-info-gradle-plugin.git

Version 0.5 (latest)

Created 20 June 2018.

Generate version-info.properties file at build time to capture project version, build time and revision info

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.prot.versioninfo") version "0.5"
}

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("com.prot.versioninfo:com.prot.versioninfo.gradle.plugin:0.5")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.prot.versioninfo")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.prot.versioninfo:com.prot.versioninfo.gradle.plugin:0.5")
      }
    }
    
    apply(plugin = "com.prot.versioninfo")
  • Applying plugins to all subprojects .