Grails 2.2.x unresolved dependencies without any changes to previously working build

后端 未结 1 773
猫巷女王i
猫巷女王i 2020-12-21 07:17

We have a Grails 2.2.4 project that I was looking to do some work on. There has been no work done on it for six months, but it built just fine back then.

When I try

相关标签:
1条回答
  • 2020-12-21 07:33

    It looks like the default grails repo provided in 2.2 does not work now. We fixed this issue by adding the following line to the grails.project.dependency.resolution closure in the BuildConfig.groovy file:

    grails.project.dependency.resolution = {
        /** Existing stuff here **/
        repositories {
            /** Other repos stay here **/
    
            //--------  NEW REPO TO ADD IS BELOW --------//
            mavenRepo "http://repo.grails.org/grails/repo/"
        }
        ...
    }
    
    0 讨论(0)
提交回复
热议问题