Could not find method uploadArchives() for arguments in build.gradle在 build.gradle 中找不到参数的方法 uploadArchives()
2023-07-28 15:24:35
michael007js
764
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri("${rootProject.projectDir}/maven-repo"))
}
}
}
uploadArchives.dependsOn sourcesJar
启动时,收到以下错误:
找不到参数的方法 uploadArchives() [build_ejkqjjnby5fggiavovparsecy$_run_closure5@c0f0c25] 在项目上 ':authenticator_sdk' 类型为 org.gradle.api.Project
解决方案
publishing {
repositories {
maven {
url = uri("${rootProject.projectDir}/maven-repo")
}
}
}