When publishing a gradle plugin to a private maven...
# community-support
e
When publishing a gradle plugin to a private maven repository is anything special needed to publish the plugin marker? I see the
<artifact>-gradlePluginMarkerMaven
publication but the artifact is not getting published to the repository.
This is for a Kotlin precompiled script plugin if that matters
v
Do you miss a "not" in the original post?
If so, which artifact do you mean? Do you mean "the jar"? Or do you mean the whole publication including pom and gmm?
e
Yes, missing a "not" 😆 The whole publication is missing
v
How did you publish?
e
Copy code
plugins {
  `kotlin-dsl`
  `maven-publish`
}

publishing {
  repositories {
    maven {
      name = "projectLocal"
      url = uri("../.m2")
    }
  }
}
Then I run
publishMavenPublicationToProjectLocalRepository
Maybe I misunderstood your comment above but the plugin jar and pom are published, but nothing related to the plugin marker is published.
Looks like I needed
publishAllPublicationsToProjectLocalRepository
☝️ 1
v
Exactly
And you should not create your own publication called
maven
, but instead configure the publications that are added for you by the plugin dev plugin
It already creates for you a publication for the code artifact and one publication per marker artifact