Skip to content

Commit

Permalink
Add snyk integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Azurelol authored and Larusso committed Apr 29, 2022
1 parent 7a82860 commit 64f55f1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@Library('github.com/wooga/atlas-jenkins-pipeline@1.x') _

withCredentials([string(credentialsId: 'atlas_slack_coveralls_token', variable: 'coveralls_token'),
string(credentialsId: 'atlas_plugins_sonar_token', variable: 'sonar_token')]) {
string(credentialsId: 'atlas_plugins_sonar_token', variable: 'sonar_token'),
string(credentialsId: 'atlas_plugins_snyk_token', variable: 'SNYK_TOKEN')]) {
buildGradlePlugin platforms: ['osx','windows','linux'], coverallsToken: coveralls_token, sonarToken: sonar_token
}
14 changes: 12 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
*/

plugins {
id 'net.wooga.plugins' version '2.2.3'
id 'net.wooga.plugins' version '2.3.0'
id 'net.wooga.snyk' version '0.10.0'
id "net.wooga.snyk-gradle-plugin" version "0.2.0"
id "net.wooga.cve-dependency-resolution" version "0.4.0"
}

group 'net.wooga.gradle'
Expand All @@ -40,10 +43,17 @@ github {
repositoryName = "wooga/atlas-slack"
}

cveHandler {
configurations("compileClasspath", "runtimeClasspath", "testCompileClasspath", "testRuntimeClasspath", "integrationTestCompileClasspath", "integrationTestRuntimeClasspath")
}

dependencies {
testImplementation "com.github.tomakehurst:wiremock-jre8:2.22.0"
testImplementation "com.github.tomakehurst:wiremock-jre8:2.33.1"

testImplementation('com.nagternal:spock-genesis:0.6.0') {
// This library tries to pull groovy-all in version 2.4 which is not compatible with groovy-all 2.5
// There is no newer version of this library. We should either fork it or get rid of the
// property tests alltogether.
exclude group: "org.codehaus.groovy", module: "groovy-all"
}
}
7 changes: 7 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,11 @@ include 'api'
include 'services:webservice'
*/

pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
}
}

rootProject.name = 'atlas-slack'

0 comments on commit 64f55f1

Please sign in to comment.