Hello,
I have a custom Gradle plugin which adds a configuration and artifact to the project.
Is it possible to reference such an artifact from the project’s build.gradle.kts
in a type-safe manner?
publishing {
publications {
create<MavenPublication>("myPublication") {
groupId = "com.acme"
version = "1.0.0"
artifactId = "myArtifact"
// TODO (rodedb): Is there no way to make this typesafe by referencing the existing artifact directly?
artifact(project.layout.buildDirectory.dir("dist").get().file("my-artifact.tar"))
}
}
}
Thank you.