Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/runningcode/tagger
Easily tag build scans from Gradle plugins
https://github.com/runningcode/tagger
buildscan gradle gradle-plugin tag
Last synced: 26 days ago
JSON representation
Easily tag build scans from Gradle plugins
- Host: GitHub
- URL: https://github.com/runningcode/tagger
- Owner: runningcode
- License: apache-2.0
- Created: 2021-07-30T13:34:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T12:40:49.000Z (over 2 years ago)
- Last Synced: 2024-09-28T03:41:11.231Z (about 1 month ago)
- Topics: buildscan, gradle, gradle-plugin, tag
- Language: Java
- Homepage:
- Size: 93.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Tagger
This project makes it easier for plugin authors and buildscript authors to tag builds without needing to check if the Gradle Enterprise plugin is applied.
## Buildscript authors
To use as a buildscript author, add the plugin to your build.gradle plugins block:
```
plugins {
id("com.osacky.tagger") version "0.3-SNAPSHOT"
}
```Then call the corresponding method on the extension:
To tag a build:
```groovy
taggerApi {
tag("foo")
}
```To add a value to a build:
```groovy
taggerApi {
value("key", "value")
}
```To add a link to a build:
```groovy
taggerApi {
link("Gradle", "https://gradle.com")
}
```## Plugin authors
First add tagger as a compile dependency:
```
dependencies {
implementation("com.osacky.tagger:tagger-lib:0.3-SNAPSHOT")
}
```To tag a build:
```groovy
new ScanApi(project).tag("foo")
```To add a value to a build:
```groovy
new ScanApi(project).value("key", "value")
```To add a link to a build:
```groovy
new ScanApi(project).link("Gradle", "https://gradle.com")
```