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 26, 2022
1 parent 2f8600e commit 5b980ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
@Library('github.com/wooga/atlas-jenkins-pipeline@1.x') _

withCredentials([string(credentialsId: 'atlas_unity_version_manager_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:['macos', 'linux'],
coverallsToken: coveralls_token, sonarToken: sonar_token, testEnvironment: [])
Expand Down
28 changes: 13 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

plugins {
id 'net.wooga.plugins' version '2.2.4'
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,28 +43,23 @@ github {
repositoryName = "wooga/atlas-unity-version-manager"
}


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

repositories {
mavenCentral()
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}

dependencies {
implementation 'net.wooga:unity-version-manager-jni:[1.4.1,2)'
implementation "gradle.plugin.net.wooga.gradle:atlas-unity:[2,3)"
implementation "com.wooga.gradle:gradle-commons:0.5.0"
implementation 'net.wooga:unity-version-manager-jni:[1.4.1,2['
implementation "gradle.plugin.net.wooga.gradle:atlas-unity:[2,3["
implementation "com.wooga.gradle:gradle-commons:[1,2["
implementation 'org.apache.maven:maven-artifact:3.8.1'
testImplementation 'net.wooga.test:unity-project-generator-rule:0.3.0'
testImplementation "com.wooga.spock.extensions:spock-unity-version-manager-extension:0.2.0"
}

configurations.all {
resolutionStrategy {
force 'org.codehaus.groovy:groovy-all:2.5.12'
force 'org.codehaus.groovy:groovy-macro:2.5.12'
force 'org.codehaus.groovy:groovy-nio:2.5.12'
force 'org.codehaus.groovy:groovy-sql:2.5.12'
force 'org.codehaus.groovy:groovy-xml:2.5.12'
}
testImplementation 'net.wooga.test:unity-project-generator-rule:0.4.0'
testImplementation "com.wooga.spock.extensions:spock-unity-version-manager-extension:0.3.0"
}

integrationTest {
Expand Down

0 comments on commit 5b980ba

Please sign in to comment.