Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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")
```