Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4943

Allow enableAutoDownload to be set when using @Grab

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.9, 2.0.8, 2.1.3
    • Fix Version/s: 2.2.0-beta-1
    • Component/s: Grape
    • Labels:

      Description

      The only way to set enableAutoDownload is to run the script with:

      groovy -Dgroovy.grape.autoDownload=false SomeScript.groovy
      

      It would be useful to add this to @GrapeConfig or use something like that to allow this to be contained to the script.

      As a related thing - I tried using method calls as per http://stackoverflow.com/questions/3632662/disable-automatic-download-for-groovy-grapes. I could not set this to use system class loader to replace import with Class.forName - not sure how this works from within groovy/grape/GrabAnnotationTransformation.java.

        Attachments

          Activity

            People

            • Assignee:
              asteingress Andre Steingress
              Reporter:
              icyrock.com icyrock.com
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: