Hi together!
It's a problem wich every few months occurs.
I do some grails upgrades and the app can't resolve my artifacts from my secured artifactory repository. This time i did an upgrade to grails 2.4.0 and yet again the problem exists.
I configured my repository as described in the grails documentation (wich seems very outdated) but grails can't resolve my dependencies from our repo. It doesn't authenticate correctly.
So my final questions wich many people already have asked:
How to configure grails (current 2.4.0) with maven as dependency-resolver to work with a private maven respository (artifactory) _with_ authentication correctly? What do i have to write to my BuildConfig to get it working?
This doesn't work:
if (Environment.current == Environment.PRODUCTION) {
if (grails.project.dependency.resolver == "maven") {
auth([
username: "reader",
password: "readerPw"
])
}
}