📜  Artifact sample-springboot-demo-0.0.1-SNAPSHOT.jar 不是由此构建生成的. - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:56.537000             🧑  作者: Mango

代码示例1
publishing {
    publications {
        create("mavenJava") {
            //from(components["java"]) // <-- this is not required
            artifact(tasks.bootJar.get()) // <-- this is required
        }
    }
}