我正在尝试使用 Artifactory Gradle 插件来发布到我的本地 Artifactory 实例。
我在 localhost:8081/artifactory 运行了最新版本(默认安装)。我可以通过网络浏览器访问来验证这一点。
但是,以我的最小示例..我收到“找不到上下文 URL 错误
请注意,我已经指定了所有必需的 Artifactory 配置设置 - (如 Artifactory Gradle WebPage 上所示).. 包括上下文 URL。
buildscript {
repositories{ maven { url 'http://repo.jfrog.org/artifactory/gradle-plugins' } }
dependencies{ classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:2.0.12'}
}
apply plugin: 'artifactory'
artifactory {
contextUrl = 'http://localhost:8081/artifactory' //The base Artifactory URL if not overridden by the publisher/resolver
publish {
repository {
repoKey = 'integration-libs' //The Artifactory repository key to publish to
username = 'admin' //The publisher user name
password = 'password'
}
}
resolve {
repository {
repoKey = 'libs-releases' //The Artifactory (preferably virtual) repository key to resolve from
}
}
}