Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sparkqa1 opened this issue May 13, 2022 · 2 comments
Open

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

sparkqa1 opened this issue May 13, 2022 · 2 comments

Comments

@sparkqa1
Copy link

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
}

@coughe
Copy link

coughe commented Sep 15, 2022

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

@coughe
Copy link

coughe commented Sep 20, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants