0

I find some document Grails 2.1.1, it says we can customize ivy-cache folder.

I have a doubt, can I specify my Maven repo (.m2) path as ivy-cache path?

grails.project.dependency.resolution = {
    cacheDir "target/ivy-cache"
}

You can change the ivy cache directory for all projects via settings.groovy

grails.dependency.cache.dir = "${userHome}/.ivy2/cache"

Does this work? Does it support all scenarios? Is it giving any better performance than ivy-cache?

halfer
  • 19,824
  • 17
  • 99
  • 186
Sun
  • 3,444
  • 7
  • 53
  • 83

1 Answers1

1

UPDATE

In Grails 2.3, it seems like we'll be able to forget about ivy... :-).

Then in the BuildConfig.groovy, we'll be able to specify this :

grails.project.dependency.resolver = "maven"

No, the folder structures and metadata are different.

com.foo.something vs com/foo/something

See the answer to your other question about forcing the ivy-cache refresh.

Community
  • 1
  • 1
rimero
  • 2,383
  • 1
  • 14
  • 8