如何解决我正在尝试使用 Gradle 将我的工件上传到 Nexus
我正在尝试使用 Gradle 将我的工件上传到 Nexus。正如您从屏幕上看到的那样,所有内容都已成功上传。 screen1
但是,当我尝试关闭存储库时,根据 guide 我必须关闭存储库才能将工件发布到 maven 中心,但我遇到了出现此类错误的失败阶段:
对于 Javadoc-staging 缺失:在文件夹“/io/github/butkoprojects/spring-boot-telegram-bots/1.0.16”中没有找到主要的 jar 工件
和:
对于源分期 缺失:在文件夹“/io/github/butkoprojects/spring-boot-telegram-bots/1.0.16”中没有找到主要的 jar 工件
我正在使用 com.bmuschko:gradle-nexus-plugin:2.3.1 构建.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
plugins {
id 'org.springframework.boot' version '2.5.0'
id 'maven'
id 'signing'
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.springframework.boot',name: 'spring-boot-starter',version: '2.5.0'
implementation group: 'org.telegram',name: 'telegrambots',version: '5.2.0'
implementation 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
test {
useJUnitPlatform()
}
bootJar {
enabled = false
}
jar {
enabled = true
duplicatesstrategy = Duplicatesstrategy.EXCLUDE
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
group = "io.github.butkoprojects"
archivesBaseName = "spring-boot-telegram-bots"
version = "1.0.16"
apply plugin: 'com.bmuschko.nexus'
modifyPom {
project {
name 'Spring Boot Telegram Bots'
description 'This is an extension of telegram-spring-boot-starter,with some additional logic.'
url 'https://github.com/butkoprojects/spring-boot-telegram-bots'
inceptionYear '2021'
scm {
url 'https://github.com/butkoprojects/spring-boot-telegram-bots'
connection 'scm:https://github.com/butkoprojects/spring-boot-telegram-bots.git'
developerConnection 'scm:git://github.com/butkoprojects/spring-boot-telegram-bots.git'
}
licenses {
license {
name 'The Apache Software License,Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'ybutko'
name 'Yevhen Butko'
email 'butkoevgenii@gmail.com'
}
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = true
repositoryUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。