1
我有一个从jenkins执行的gradle项目,它只应该从存储库检出现有的库并将它们上传到artifactory。结账成功的工作,但在执行uploadArchives抛出一个MissingMethodException:gradle任务uploadArchives不起作用
Caused by: org.gradle.api.internal.MissingMethodException: Could not find method archives() for arguments [{file=/var/lib/jenkins/jobs/Libs/workspace/libphonenumber.jar, name=libphonenumber, type=jar}] on root project 'workspace'.
uploadArchives:
uploadArchives {
println "I'm here: uploadArchives"
archives file: file('libphonenumber-5.7.jar'), name: 'libphonenumber', type: 'jar'
archives file: file('log4j-1.2.17.jar'), name: 'log4j', type: 'jar'
}
什么问题?
感谢