Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't directly use plugin from MavenCentral - Plugin's marker isn't published. #763

Open
timothyfroehlich opened this issue Oct 25, 2024 · 4 comments

Comments

@timothyfroehlich
Copy link
Member

I'm modifying my build to remove the Gradle Plugin Portal from my plugin repositories and the Protobuf plugin is the one giving me an issue. I'm unable to apply the plugin using the below block:

plugins {
  id "com.google.protobuf" version "0.9.4"
}

Instead I needed configure it the old way using buildscript:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("com.google.protobuf:protobuf-gradle-plugin:0.9.4")
    }

It seems like the plugin's marker artifact isn't being published to mavenCentral. If that can be fixed then I'd be able to remove the buildscript bit.

@ejona86
Copy link
Collaborator

ejona86 commented Oct 25, 2024

Is there a reason you aren't using the Gradle Plugin Portal? The Maven Central method has been maintained for older usages of the plugin.

@timothyfroehlich
Copy link
Member Author

The short version is that we're looking to change our build to pull dependencies from a secured mirror, and that mirror doesn't currently pull from the Gradle Plugin Portal. Feel free to ping me if you'd like to know more about what we're up to.

@ejona86
Copy link
Collaborator

ejona86 commented Oct 25, 2024

I can follow that case. I figured you had your own mirror in some way. Aren't you going to have problems with many different plugins, or are plugins overall still publishing to Maven Central?

@timothyfroehlich
Copy link
Member Author

That's the thing, I think the Protobuf plugin is the only one that we're using that couldn't be found on GMaven or MavenCentral. I was confirming that and found another plugin (Kotlin Gradle DSL) that's only on GPP, but I'm pretty confident I can get around that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants