Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f607f66

Browse files
Add snyk monitoring [ATLAS-698] (#44)
## Decription This patch adds snyk monitoring to the build pipeline. It will hook itself into the check and publish stages. The patch also sets a dependency helper plugin net.wooga.cve-dependency-resolution which applies overrides for dependencies with know fixes for security issues. ## Changes * ![ADD] `snyk` monitoring * ![ADD] `net.wooga.snyk-wdk-java` snyk convention plugin * ![ADD] `net.wogoa.cve-dependency-resolution` plugin
1 parent 71edb32 commit f607f66

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Jenkinsfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
withCredentials([usernamePassword(credentialsId: 'github_integration', passwordVariable: 'githubPassword', usernameVariable: 'githubUser'),
55
usernamePassword(credentialsId: 'github_integration_2', passwordVariable: 'githubPassword2', usernameVariable: 'githubUser2'),
66
string(credentialsId: 'atlas_github_release_notes_coveralls_token', variable: 'coveralls_token'),
7-
string(credentialsId: 'atlas_plugins_sonar_token', variable: 'sonar_token')
7+
string(credentialsId: 'atlas_plugins_sonar_token', variable: 'sonar_token'),
8+
string(credentialsId: 'atlas_plugins_snyk_token', variable: 'SNYK_TOKEN')
9+
810
]) {
911

1012
def testEnvironment = [ 'macos':

build.gradle

+12-14
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ buildscript {
2222
}
2323

2424
plugins {
25-
id 'net.wooga.plugins' version '2.2.0'
25+
id 'net.wooga.plugins' version '2.2.4'
26+
id 'net.wooga.snyk' version '0.10.0'
27+
id "net.wooga.snyk-gradle-plugin" version "0.2.0"
28+
id "net.wooga.cve-dependency-resolution" version "0.4.0"
2629
}
2730

2831
group 'net.wooga.gradle'
@@ -46,19 +49,14 @@ github {
4649
repositoryName.value "wooga/atlas-github-release-notes"
4750
}
4851

49-
dependencies {
50-
testCompile "org.ajoberstar:grgit:1.7.2"
51-
testCompile'com.wooga.spock.extensions:spock-github-extension:[0.1.2, 0.2)'
52-
compile 'com.wooga.github:github-changelog-lib:[0.4.2, 0.5)'
53-
compile "gradle.plugin.net.wooga.gradle:atlas-github:[2,3)"
52+
cveHandler {
53+
configurations("compileClasspath", "runtimeClasspath", "testCompileClasspath", "testRuntimeClasspath", "integrationTestCompileClasspath", "integrationTestRuntimeClasspath")
5454
}
55-
configurations.all {
56-
resolutionStrategy {
57-
force 'org.codehaus.groovy:groovy-all:2.5.12'
58-
force 'org.codehaus.groovy:groovy-macro:2.5.12'
59-
force 'org.codehaus.groovy:groovy-nio:2.5.12'
60-
force 'org.codehaus.groovy:groovy-sql:2.5.12'
61-
force 'org.codehaus.groovy:groovy-xml:2.5.12'
62-
}
55+
56+
dependencies {
57+
testCompile 'org.ajoberstar.grgit:grgit-core:[4.1.1,5['
58+
testCompile'com.wooga.spock.extensions:spock-github-extension:[0.3, 0.4['
59+
compile 'com.wooga.github:github-changelog-lib:[0.6, 0.7['
60+
compile "gradle.plugin.net.wooga.gradle:atlas-github:[2,3["
6361
}
6462

0 commit comments

Comments
 (0)