'Why is this boolean parameter for Jenkins / Gradle (defined in groovy) not working?

I have this Jenkins job defined in groovy and I would like to tick the "Make gradlew executable" box.

steps {
    gradle {
        executable(true)
        tasks("""forbiddenApisMain
jar""")
    }
}

enter image description here

According to https://readthedocs.org/projects/jenkins-job-builder/downloads/pdf/stable/ (page 102), I need to set executable to true However I get this error:

ERROR: (Build.groovy, line 576) No signature of method: javaposse.jobdsl.dsl.helpers.step.GradleContext.executable() is applicable for argument types: (java.lang.Boolean) values: [true]. I don't get the error if I remove executable(true)). Any idea? I checked and I have the latest plugin



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source