Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simulatan/gradle-buildinfo-plugin

🚀 Bake gradle build information into your jar files ☕
https://github.com/simulatan/gradle-buildinfo-plugin

Last synced: 5 days ago
JSON representation

🚀 Bake gradle build information into your jar files ☕

Awesome Lists containing this project

README

        

# Gradle BuildInfo Plugin
A Gradle plugin to bake in build information into your artifacts. Saves information into `META-INF/MANIFEST.MF` in the built jar file.

## History
This plugin is based on [ksoichiro/gradle-build-info-plugin](https://github.com/ksoichiro/gradle-build-info-plugin), some of the code is copied from there and adapted to kotlin.

The whole plugin was rewritten in Kotlin and the dependencies updated - the original plugin was not maintained anymore since Gradle 2.11!

However, this isn't just an up-to-date version of the original plugin, in the future, this plugin will be extended with additional features.

## Usage
### Groovy
```groovy
plugins {
id "io.github.simulatan.gradle-buildinfo-plugin" version "v1.0.0"
}
```

### Kotlin
```kotlin
plugins {
id("io.github.simulatan.gradle-buildinfo-plugin") version "v1.0.0"
}
```

*find the latest version [on the gradle plugin portal](https://plugins.gradle.org/plugin/io.github.simulatan.gradle-buildinfo-plugin/)*

### Tasks
The plugin adds a `buildInfo` task to your project. This task is automatically added as a dependency to the `jar` task.

### Configuration
The plugin adds an extension named `buildInfo` to your project which is used to configure the plugin. The settings available are listed in [BuildInfoExtension.kt](src/main/kotlin/io/github/simulatan/gradle/plugin/buildinfo/BuildInfoExtension.kt).