Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-1447

Use Gradle's provided Groovy library as default for 'groovy' dependency (Groovy plugin)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Resolution: Won't Fix
  • Affects Version/s: 1.0-milestone-1
  • Fix Version/s: 1.0

Description

The Groovy plugin requires the definition of the 'groovy' dependency like this:

apply plugin: 'groovy'

dependencies {
    groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.6'
}

Gradle already ships with a groovy-all library. I think it would be great if we could simply assign that library so the user doesn't have to define the dependency. If the user wants to assign a different Groovy version he/she can still do that in the dependencies closure. At the moment I am using this workaround:

dependencies {
    groovy fileTree(dir: new File(gradle.gradleHomeDir, 'lib'), includes: ['**/groovy-all-*.jar'])
}

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Contegix Support made changes - 19/Mar/11 9:23 AM
Field Original Value New Value
Project Import Sat Mar 19 09:23:24 CDT 2011 [ 1300544604020 ]
Adam Murdoch made changes - 10/Apr/11 7:26 PM
Fix Version/s 1.0-milestone-2 [ 10049 ]
Fix Version/s 1.0 [ 10051 ]
Hide
Permalink
Luke Daley added a comment - 21/Jun/11 7:14 PM

Using it as a default is a bit risky, but there is a shorthand notation for this which is a good compromise.

groovy localGroovy()

This was added to the docs in 1.0 m4.

Note that this doesn't export as a dependency, so won't show up in your POM if you are producing one (which is usually the desired behaviour if you want to use Gradle's groovy).

Show
Luke Daley added a comment - 21/Jun/11 7:14 PM Using it as a default is a bit risky, but there is a shorthand notation for this which is a good compromise.
groovy localGroovy()
This was added to the docs in 1.0 m4. Note that this doesn't export as a dependency, so won't show up in your POM if you are producing one (which is usually the desired behaviour if you want to use Gradle's groovy).
Luke Daley made changes - 21/Jun/11 7:14 PM
Resolution Won't Fix [ 2 ]
Assignee Luke Daley [ ldaley ]
Status Open [ 1 ] Resolved [ 5 ]
Daz DeBoer made changes - 03/Aug/11 3:30 PM
Workflow jira [ 12834 ] jira with pivotal tracker [ 14453 ]
Luke Daley made changes - 03/Jan/13 5:08 AM
Status Resolved [ 5 ] Closed [ 6 ]
Workflow jira with pivotal tracker [ 14453 ] jira with pivotal tracker (no resolved, only closed) [ 16242 ]
Luke Daley made changes - 04/Jan/13 5:09 AM
Status Closed [ 6 ] Resolved [ 5 ]
Workflow jira with pivotal tracker (no resolved, only closed) [ 16242 ] Copy of jira with pivotal tracker (no closed, only resolved) [ 18917 ]
Unable to get TeamCity builds: No active plugin license is found! Please visit http://stiltsoft.com/teamcity for details

People

  • Assignee:
    Luke Daley
    Reporter:
    Benjamin Muschko
Vote (0)
Watch (1)

Dates

  • Created:
    17/Mar/11 9:47 AM
    Updated:
    04/Jan/13 5:09 AM
    Resolved:
    21/Jun/11 7:14 PM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.