java - Gradle没有将工件上传到工件
问题描述
我正在尝试上传一个用 gradle 创建的 jar,但我遇到了麻烦,因为我对 gradle 或 artifactory 都不熟悉。
由于这是一个旧项目,因此使用的是 Gradle 3.5。
这是我添加到 build.gradle 文件中的内容:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"
}
}
allprojects {
apply plugin: "com.jfrog.artifactory"
}
artifactory {
contextUrl = "xxxxxxxxx" //The base Artifactory URL if not overridden by the publisher/resolver
publish {
repository {
repoKey = 'repokey1'
username = "xxxxxxx"
password = "xxxxxx"
}
}
resolve {
repository {
repoKey = 'repokey2'
username = "xxxxxx"
password = "xxxxxx"
}
}
}
apply plugin: "com.jfrog.artifactory"
当我运行时:
gradle artifactoryPublish
我收到以下消息:
Deploying build descriptor to: http://xxxxxxxx/artifactory/api/build
Build successfully deployed. Browse it in Artifactory under http://xxxxxxx/artifactory/webapp/builds/my-project/1626816605048/2021-07-20T17:30:05.039-0400/
如果我访问 http://xxxxxxxx/artifactory/api/build 我会得到一个带有一些元数据的 json,但是在任何地方都找不到 jar,我错过了什么吗?
解决方案
推荐阅读
- ios - 将对象添加到 NSMutableArray - 奇怪的行为
- json - 在 Swift 的 ObjectMapper 中使用 TranfsformType 映射类对象
- regex - 如何从字符串中删除电子邮件地址?
- r - 如何使用 dplyr 根据向量中字符串的存在来变异和赋值
- kotlin - 私有顶级扩展函数和类内部私有扩展函数的区别
- php - Builder.php 第 2405 行中的 BadMethodCallException:调用未定义的方法 Illuminate\Database\Query\Builder::answers()
- sql-server - 我想在 sql server 中将 20080910173240 转换为 2008-09-10T17:32:40.000+0000
- swift - 如何在 xcode 中删除构建警告消息
- redis - 如何将 Redis DB 配置为只读?
- python - 在哪里存储 tns、用户名和密码,以便在 Unix 中与 Python 和 R 一起使用 Oracle DB 连接