我通过Gradle artifactory插件将我的jar发布到我们的本地Artifactory时出现问题,我希望弄清楚我在配置中做错了什么 .
当我将项目组(build.gradle)设置为'de.companyName'时,我不会在Artifactory中看到任何Dependancy声明,但是当我将组设置为'companyName'时,它会正确显示 .
在上传/发布期间,artifactory会解析正确的路径:
:artifactoryPublish
:artifactoryDeploy
Deploying artifact: https://artifactory.company.de/artifactory/repokey/de/companyName/artifactName/1.4.1/artifactName-1.4.1.jar
这是我的配置:
artifactory installed locally: Artifactory OSS
5.8.3 rev 50803900
的build.gradle:
plugins {
id "com.jfrog.artifactory" version "4.7.5"
}
...
artifactory {
contextUrl = 'https://artifactory.companyName.de/artifactory'
publish {
repository {
repoKey = "repokey"
username = "username"
password = "password"
maven = true
}
defaults {
publishConfigs('archives')
}
}
clientConfig.info.setBuildNumber(version.toString())
}
我希望了解工件如何发布这些工件 .