У меня есть следующий пользовательский репозиторий URL для плагина, который я пытаюсь загрузить в моем приложении:разрешения Ограничения зависимостей для пользовательского хранилища
https://server.com/artifactory/plugins-release-local/abc/pluginXYZ/r181/pluginXYZ-r181.jar
В моем build.gradle
файле:
...
repositories {
mavenLocal()
maven { url 'https://repo.grails.org/grails/core' }
//custom Artifactory repository
maven { url 'https://server.com/artifactory/plugins-release-local' }
}
...
dependencies {
compile "abc:pluginXYZ:r181"
}
Сводный код:
[email protected] ~/my_app
$ grails compile
[buildinfo] Not using buildInfo properties file for this build.
BUILD SUCCESSFUL
Total time: 3.906 secs
Error |
Could not resolve all dependencies for configuration ':testRuntime'. Type 'gradle dependencies' for more information
Далее пытаются диагностировать проблемы зависимости:
[email protected] ~/my_app
$ ./gradlew dependencies --info | grep missing
Resource missing. [HTTP HEAD: https://repo.grails.org/grails/core/abc/pluginXYZ/r181/wetkit-r181.pom]
Resource missing. [HTTP HEAD: https://repo.grails.org/grails/core/abc/pluginXYZ/r181/wetkit-r181.jar]
В этом случае pluginXYX
никогда не будут найдены на repo.grails.org
. Как я могу ограничить разрешение в моем обычном репозитории Artifactory?