[GRADLE-2366] Have mavenLocal() check M2_HOME/conf/settings.xml Created: 27/Jun/12 Updated: 04/Jan/13 Resolved: 11/Jul/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 1.1-rc-1 |
Type: | Improvement | ||
Reporter: | Gradle Forums | Assignee: | René Gröschke (Inactive) |
Resolution: | Fixed | Votes: | 0 |
Description |
Would be useful if mavenLocal() method checked M2_HOME/conf/settings.xml for a local Maven cache location before constructing it from user.home. As per this thread - [1]http://forums.gradle.org/gradle/topic.... I would be happy to submit some code if you are welcoming contributors. cheers |
Comments |
Comment by Gradle Forums [ 27/Jun/12 ] |
Contributions are always welcome. You can look at org.gradle.api.internal.artifacts.mvnsettings.DefaultLocalMavenCacheLocator to get started. You might also find [1]http://gradle.org/contribute has some useful pointers. |
Comment by Gradle Forums [ 27/Jun/12 ] |
Shouldn't it be the other way around? That is, a `settings.xml` in `user.home` should override whatever is inside `M2_HOME/conf/settings.xml`? |
Comment by Gradle Forums [ 27/Jun/12 ] |
Yes. See this thread for some discussion on maven settings.xml. [1]http://stackoverflow.com/questions/12.... And see this for Gradle [2]http://gradle.org/docs/current/usergu... |