I can configure my Grails app to pull from my company's Archiva repo using:
grails.project.dependency.resolution = {
repositories {
mavenRepo "https://repo.mycompany.com/archiva/repository/internal/"
However, this doesn't quite work right, because I also need to pull a couple of snapshot versions of artifacts which are located in a slightly different location. So if I include the above, all artifacts resolve except for the snapshots. However, if I include the below code:
mavenRepo "https://repo.mycompany.com/archiva/repository/snapshot/"
then all the snapshot artifacts are resolved, however (as you would expect) none of the release artifacts get resolved. So obviously the solution is to include both, however that is not working either. If I do:
mavenRepo "https://repo.mycompany.com/archiva/repository/internal/"
mavenRepo "https://repo.mycompany.com/archiva/repository/snapshot/"
Then the snapshots don't resolve, and additionally some of the release artifacts don't resolve either (but some do). How are you supposed to configure multiple custom repo locations in Grails? I'm using Grails 2.5.1