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-1317

Provide a way to exclude a transitive dependency from a shared project

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Resolution: Unresolved
  • Affects Version/s: 0.9, 0.9.1
  • Fix Version/s: None

Description

Currently there is no away (via the DSL) to exclude a transitive dependency of another project in the same multi-project build.

It seems like the following should work:
dependencies {
compile project(':shared') { exclude group: 'xerces', module: 'xerces' }
}

Note: Adam Murdoch points out that this will with with an extra pair of parentheses around the project. See:
http://gradle.1045684.n5.nabble.com/Excluding-a-transitive-dependency-from-a-project-tt3344855.html

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Hide
Permalink
Peter Niederwieser added a comment - 26/Jan/11 11:54 AM

Bumping priority as it is a common trap.

Show
Peter Niederwieser added a comment - 26/Jan/11 11:54 AM Bumping priority as it is a common trap.
Hide
Permalink
Mike M. added a comment - 06/Mar/12 3:13 AM

Same goes for transitivity of project dependencies:

earlib (project(':my-subproject')) {
	transitive = false
}

Vote++

Show
Mike M. added a comment - 06/Mar/12 3:13 AM Same goes for transitivity of project dependencies:
earlib (project(':my-subproject')) {
	transitive = false
}
Vote++

People

  • Assignee:
    Unassigned
    Reporter:
    Darren Evenson
Vote (10)
Watch (6)

Dates

  • Created:
    18/Jan/11 12:41 PM
    Updated:
    06/Mar/12 3:13 AM
  • 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.