snyk / gradle-plugin

Snyk Gradle Plugin - Scanning and monitoring your dependencies for security vulnerabilities from Gradle
Other
17 stars 19 forks source link

Execution failed for task ':snyk-check-binary' #18

Open sparkqa1 opened 2 years ago

sparkqa1 commented 2 years ago

Hello,

I am trying to use this plugin in my gradle project. I getting the below error. Any help on this much appriciated.

my common gradle.build file will look something like this

plugins { id 'java' id "io.snyk.gradle.plugin.snykplugin" version "0.4" } wrapper { gradleVersion = '4.4' distributionUrl = distributionUrl.replace("bin", "all") } repositories { maven{ url } } project.ext { scalaVersion='2.12.0' slf4jVersion='1.7.21' logbackVersion='1.1.7' sparkVersion='3.0.1' } snyk { api = 'xxxxxxxxxxxxxxxxxxxxxxx' arguments = '--all-sub-projects' autoDownload = true autoUpdate = true }

coughe commented 2 years ago

I am experiencing the same issue with gradle 4.1. Is there any update on this one? @sparkqa1, did you resolve your issue?

coughe commented 2 years ago

I upgraded to gradle 4.10 and it works. getCurrentOperatingSystem() is scoped to private in 4.1, public in 4.10.