Search Gradle plugins

org.hibernate.build.version-injection

Gradle plugin for performing injection of the project's version into the bytecode of one or more members

https://github.com/hibernate/version-injection-plugin

Sources: https://github.com/hibernate/version-injection-plugin

Version 2.0.0 (latest)

2.0.0

Created 14 June 2024.

Gradle plugin for performing injection of the project's version into the bytecode of one or more members

Using the plugins DSL:

plugins {
  id("org.hibernate.build.version-injection") version "2.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.hibernate.build.gradle:version-injection-plugin:2.0.0")
  }
}

apply(plugin = "org.hibernate.build.version-injection")

Using the plugins DSL:

plugins {
  id "org.hibernate.build.version-injection" version "2.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.hibernate.build.gradle:version-injection-plugin:2.0.0"
  }
}

apply plugin: "org.hibernate.build.version-injection"

Learn how to apply plugins to subprojects