Skip to content

Commit 2f05fa7

Browse files
Fixed Gradle build and added Snyk badge
Signed-off-by: Decker, Stefan <[email protected]>
1 parent 4637389 commit 2f05fa7

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Graylog AlertManager Notification Plugin [![Build Status](https://travis-ci.org/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback.svg?branch=master)](https://travis-ci.org/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback)
1+
# Graylog AlertManager Notification Plugin [![Build Status](https://travis-ci.org/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback.svg?branch=master)](https://travis-ci.org/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback) [![Known Vulnerabilities](https://snyk.io/test/github/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback/badge.svg)](https://snyk.io/test/github/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback)
22
This plugin can be used for connecting [Graylog](https://www.graylog.org/) alerts to the [Prometheus](https://prometheus.io/) [AlertManager](https://prometheus.io/docs/alerting/alertmanager/).
33

44
The plugin development is based on [Graylog2/graylog-plugin-sample](https://github.com/Graylog2/graylog-plugin-sample) which is mentioned in the [Graylog plugin documentation](http://docs.graylog.org/en/2.4/pages/plugins.html).

build.gradle

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,7 @@ buildscript {
1010
}
1111

1212

13-
def title = "mOPS_Graylog_AlertManagerNotificationPlugin"
14-
15-
def getVersionName = { ->
16-
def stdout = new ByteArrayOutputStream()
17-
exec {
18-
commandLine 'git', 'describe', '--tags', '--long'
19-
standardOutput = stdout
20-
}
21-
return stdout.toString().trim()
22-
}
13+
def title = "Graylog-Plugin-AlertManager-Callback"
2314

2415
apply plugin: "com.github.harbby.gradle.serviceloader"
2516
apply plugin: 'java'
@@ -35,7 +26,7 @@ serviceLoader {
3526
}
3627

3728
group = 'de.gdata.mobilelab'
38-
version = getVersionName()
29+
version = 0.1
3930

4031
sourceCompatibility = 1.8
4132
targetCompatibility = 1.8
@@ -79,14 +70,14 @@ dependencies {
7970
}
8071

8172
jar {
82-
archiveName = "graylog-plugin-alertmanagercallback-" + getVersionName() + ".jar"
73+
archiveName = "graylog-plugin-alertmanagercallback-" + version + ".jar"
8374
baseName = title
84-
version = getVersionName()
75+
version = 0.1
8576
group = "de.gdata.mobilelab.alertmanagercallback"
8677
manifest {
8778
attributes(
8879
'Implementation-Title': title,
89-
'Implementation-Version': getVersionName(),
80+
'Implementation-Version': version,
9081
'Build-Time': new Date().format("yyy-MM-dd HH:mm:ss"),
9182
'Graylog-Plugin-Properties-Path': 'de.gdata.mobilelab.alertmanagercallback.graylog-plugin-alertmanagercallback'
9283
)

0 commit comments

Comments
 (0)