Often I get and invalid SHA1 error when executing run-app in Grails 2.0.0.RC1, especially with depedencies to our pwn products/modules.

I have found the following Jira case: http://jira.grails.org/browse/GRAILS-7313

Unfortunately the following line in BuildConfig.groovy

ivySettings.setVariable("ivy.checksums", "")

results in the error:

| Error There was an error loading the BuildConfig: No signature of method: groovy.util.ConfigObject.setVariable() is applicable for argument types: 
(java.lang.String, java.lang.String) values: [ivy.checksums, ] (Use --stacktrace to see the full trace)

Regards

Jonas

有帮助吗?

解决方案

ivySettings.setVariable("ivy.checksums", "")

should work if you put it inside the resolution closure e.g.

grails.project.dependency.resolution = {
    ivySettings.setVariable("ivy.checksums", "")
}

but

grails.project.dependency.resolution = {
    checksums false
}

is the right way to do it for Grails 2.0 and later.

其他提示

Bobby Warner's comment suggests the new way to disable checksums is:

grails.project.dependency.resolution = {
    checksums false
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top