我正在将旧的grails应用程序从2.1.0升级到2.4,将Java 1.6升级到1.8。我正在尝试构建项目,但是由于某种原因我无法解决这一依赖性:
错误| 无法解决依赖关系(有关更多信息,请在BuildConfig.groovy中将日志级别设置为“警告”):org.springframework:spring-test:4.0.5.RELEASE
我的BuildConfig.groovy在下面。我该如何解决?
result <- nloptr(
x,
eval_f = objective_fun,
eval_grad_f= grad_objective_fn,
lb = lo,
ub = up,
eval_g_ineq = inequality_constraint ,
eval_jac_g_ineq = jacobian_ineq_constraint,
opts = list (
"algorithm" = "NLOPT_GD_STOGO",
"xtol_rel" = 1.0e-8,
# "print_level" = 2 ,
"check_derivatives" = FALSE
# "check_derivatives_print" = "all"
)
答案 0 :(得分:0)
在您的build.gradle中添加此依赖项
运行时“ org.springframework:spring-test:4.0.5.RELEASE”