Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 ☕
- Host: GitHub
- URL: https://github.com/simulatan/gradle-buildinfo-plugin
- Owner: SIMULATAN
- License: mit
- Created: 2023-05-26T09:02:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-06T15:18:39.000Z (2 months ago)
- Last Synced: 2024-09-06T18:21:02.421Z (2 months ago)
- Language: Kotlin
- Size: 80.1 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).