Groovy
  1. Groovy
  2. GROOVY-4943

Allow enableAutoDownload to be set when using @Grab

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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.

        Activity

        icyrock.com created issue -
        Paul King made changes -
        Field Original Value New Value
        Labels contrib
        Andre Steingress made changes -
        Assignee Andre Steingress [ asteingress ]
        Hide
        Andre Steingress added a comment -
        Show
        Andre Steingress added a comment - Here is the pull request: https://github.com/groovy/groovy-core/pull/171
        Andre Steingress made changes -
        Affects Version/s 1.8.9 [ 18778 ]
        Affects Version/s 2.0.8 [ 19099 ]
        Affects Version/s 2.1.3 [ 19156 ]
        Andre Steingress made changes -
        Fix Version/s 2.2.0-beta-1 [ 19074 ]
        Hide
        Andre Steingress added a comment -

        Merged.

        Show
        Andre Steingress added a comment - Merged.
        Andre Steingress made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12733869 ] Default workflow, editable Closed status [ 12745666 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971397 ] Default workflow, editable Closed status [ 12979190 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        652d 4h 25m 1 Andre Steingress 07/May/13 02:57
        Resolved Resolved Closed Closed
        64d 2h 45m 1 Paul King 10/Jul/13 05:42

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development