为 Groovy 的 Grape 添加额外仓库

由于不是所有依赖都在 maven central,你可能想添加额外的仓库,你可以这样做:

@GrabResolver(name='仓库名', root='仓库地址')

例子

@GrabResolver(name='aliyun', root='https://maven.aliyun.com/repository/public')
@Grab(group='org.restlet', module='org.restlet', version='1.1.6')
posted @ 2022-01-26 13:47  MatroLeox  阅读(98)  评论(0编辑  收藏  举报