Maven将缺少的工件发布到存储库

问题描述

我正在尝试发布我的库,但是与它的发布有关。

我正在使用此库https://github.com/vanniktech/gradle-maven-publish-plugin在maven Central(oss)上发布我的项目,但是由于某些原因,只有-sources.jar-javadoc.jar.module是被推送到存储库,但是file-butler-0.1.4-SNAPSHOT.jar丢失了:(

有人有什么主意吗?

image presenting the files that were published to maven repository

build.gradle(模块)

plugins {
    id 'java-library'
    id 'kotlin'
    id 'kotlin-kapt'
}
dependencies {
    def gson = "com.google.code.gson:gson:2.8.6"
    def moshi = "com.squareup.moshi:moshi:1.11.0"
    def moshCodeGen = "com.squareup.moshi:moshi-kotlin-codegen:1.11.0"

    implementation(Deps.core.kotlin)
    implementation(gson)
    implementation(moshi)
    kapt(moshCodeGen)

    testImplementation(Deps.testing.truth)
    testImplementation(Deps.testing.jUnit)
    kaptTest(moshCodeGen)
}
sourceSets {
    main.kotlin.srcDirs += 'src/main/kotlin'
    main.java.srcDirs += 'src/main/java'
}
apply plugin: "com.vanniktech.maven.publish"

build.gradle.kts(项目)

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        mavenCentral()
        google()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:4.1.0")
        classpath(kotlin("gradle-plugin","1.4.10"))
        classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.4.10")
        classpath("com.vanniktech:gradle-maven-publish-plugin:0.13.0")

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}



allprojects {
    repositories {
        mavenCentral()
        google()
        jcenter()
    }
}

task<Delete>("clean") {
    delete(rootProject.buildDir)
}

ps:publishToMavenLocal将预期的jar发布到我的本地存储库。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...