gradle-plugin icon indicating copy to clipboard operation
gradle-plugin copied to clipboard

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

Open sparkqa1 opened this issue 2 years ago • 2 comments

Hello,

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

  • What went wrong: Execution failed for task ':snyk-check-binary'. tried to access method org.gradle.nativeplatform.platform.internal.DefaultNativePla tform.getCurrentOperatingSystem()Lorg/gradle/nativeplatform/platform/internal/DefaultOperatingSystem; from class io.snyk.gradle.plugin.SnykBinaryTask

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 }

sparkqa1 avatar May 13 '22 09:05 sparkqa1