Version Injection Plugin for Gradle

Gradle plugin for dynamic injection of the project version into classes (bytecode manipulation)

Лицензия

Лицензия

Категории

Категории

Gradle Компиляция и сборка Hibernate Данные ORM
Группа

Группа

org.hibernate.build.gradle
Идентификатор

Идентификатор

version-injection-plugin
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Version Injection Plugin for Gradle
Gradle plugin for dynamic injection of the project version into classes (bytecode manipulation)
Ссылка на сайт

Ссылка на сайт

http://hibernate.org
Организация-разработчик

Организация-разработчик

Hibernate.org
Система контроля версий

Система контроля версий

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

Скачать version-injection-plugin

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.hibernate.build.gradle/version-injection-plugin/ -->
<dependency>
    <groupId>org.hibernate.build.gradle</groupId>
    <artifactId>version-injection-plugin</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.hibernate.build.gradle/version-injection-plugin/
implementation 'org.hibernate.build.gradle:version-injection-plugin:1.0.0'
// https://jarcasting.com/artifacts/org.hibernate.build.gradle/version-injection-plugin/
implementation ("org.hibernate.build.gradle:version-injection-plugin:1.0.0")
'org.hibernate.build.gradle:version-injection-plugin:jar:1.0.0'
<dependency org="org.hibernate.build.gradle" name="version-injection-plugin" rev="1.0.0">
  <artifact name="version-injection-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.hibernate.build.gradle', module='version-injection-plugin', version='1.0.0')
)
libraryDependencies += "org.hibernate.build.gradle" % "version-injection-plugin" % "1.0.0"
[org.hibernate.build.gradle/version-injection-plugin "1.0.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.javassist : javassist jar 3.18.1-GA

Модули Проекта

Данный проект не имеет модулей.

version-injection-plugin

Gradle plugin used by Hibernate to inject project version into compiled classes

To use you'd simply apply the plugin (after making sure it is added to your buildscript classpath):

buildscript {
    ...
    dependencies {
        classpath 'org.hibernate.build.gradle:version-injection-plugin:${theVersionToUse}'
    }
}

apply plugin: 'version-injection'

Then, you'd configure it. Configuration mainly involves naming the Class member to inject the project version into:

versionInjection {
    into( 'com.acme.Version', 'getVersionString' )
}

The above would instruct the plugin to over-write the body of com.acme.Version.getVersionString() method with the project's current version. The plugin does this through bytecode manipulation. The injection is performed every time the compileJava task is performed (as a doLast action).

org.hibernate.build.gradle

Hibernate

Версии библиотеки

Версия
1.0.0