Artifact sample-springboot-demo-0.0.1-SNAPSHOT.jar wasn't produced by this build. code example
Example: Artifact sample-springboot-demo-0.0.1-SNAPSHOT.jar wasn't produced by this build.
publishing {
publications {
create<MavenPublication>("mavenJava") {
//from(components["java"]) // <-- this is not required
artifact(tasks.bootJar.get()) // <-- this is required
}
}
}