Only use plugin if we're publishing

This commit is contained in:
libraryaddict 2024-09-10 16:22:32 +12:00
parent ed17c2ac3e
commit 02d31aa966

View File

@ -1,6 +1,6 @@
plugins {
`maven-publish`
id("org.hibernate.build.maven-repo-auth") version "3.0.4"
id("org.hibernate.build.maven-repo-auth") version "3.0.4" apply false
}
version = "10.0.44-SNAPSHOT"
@ -29,6 +29,10 @@ tasks.withType<Javadoc>().configureEach {
)
}
tasks.named("publish") {
apply(plugin = "org.hibernate.build.maven-repo-auth")
}
publishing {
repositories {
// If 'publishToExternalRepo' is false or missing, only publish to local.