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

Add badge for gradle plugin portal #1125

Closed
StefMa opened this issue Oct 3, 2017 · 9 comments · Fixed by #6449
Closed

Add badge for gradle plugin portal #1125

StefMa opened this issue Oct 3, 2017 · 9 comments · Fixed by #6449
Labels
needs-upstream-help Not actionable without help from a service provider service-badge New or updated service badge

Comments

@StefMa
Copy link
Contributor

StefMa commented Oct 3, 2017

It would be cool if we have a badge for the gradle plugin portal.

I image it like similar the maven central or the bintray badge.
Bintray (If it's working of course 🙃)
Maven Central
plugin portal | v0.9.95

You can use this URL for example: (don't know how shields works, but I think you need that 😄)
https://plugins.gradle.org/plugin/org.shipkit.java-publish/0.9.95

@paulmelnikow paulmelnikow added the service-badge New or updated service badge label Oct 3, 2017
@paulmelnikow
Copy link
Member

Hi, thanks for the suggestion. Do they have a public API?

@StefMa
Copy link
Contributor Author

StefMa commented Oct 3, 2017

I can't find one 😞
Even something like _latest doesn't work...

@paulmelnikow
Copy link
Member

I'm marking all the needs-upstream-help issues closed.

If there's new information from the upstream service, please post in the thread. If they're actionable by Shields, a maintainer will reopen the issue.

If anyone wants to follow up with these vendors, feel free to do that! Even though the unresolved issues are closed, they are easy to find:

https://github.com/badges/shields/issues?q=label%3Aneeds-upstream-help+is%3Aclosed

@radarsh
Copy link

radarsh commented Oct 16, 2017

In the meantime, can't we just parse the output of https://plugins.gradle.org/plugin/<plugin-id> and extract the output? This would be abstracted by the shields.io API so when Gradle does expose a public API for getting just the version, we could always update the shields.io implementation.

@paulmelnikow
Copy link
Member

Shields has limited server resources so we avoid parsing HTML for performance reasons.

Wanted to link gradle/gradle#1477 which is the request for an API.

@loosebazooka
Copy link

loosebazooka commented Aug 2, 2018

@paulmelnikow I wrote a dumb parser, it should work for most cases. It currently redirects to a shield badge, which does not appear to be the way the maven badge thing works, but this is just a prototype, happy to rewrite it to match the shields.io style for plugins(?).

https://github.com/loosebazooka/gradle-plugin-badges

Actually I think this can be solved by the maven-metadata badges, I need to play around with that though.

@StefMa
Copy link
Contributor Author

StefMa commented Aug 3, 2018

Just for reference:
#1839 & gradle/gradle#1477 (comment)

@Horcrux7
Copy link

With the maven repo https://plugins.gradle.org/m2/ and the Maven metadata URL it work for me.

Maven metadata URL

[![Maven metadata URL](https://img.shields.io/maven-metadata/v?label=Plugin&metadataUrl=https%3A%2F%2Fplugins.gradle.org%2Fm2%2Fde%2Finetsoftware%2Fjwebassembly%2Fde.inetsoftware.jwebassembly.gradle.plugin%2Fmaven-metadata.xml)](https://plugins.gradle.org/plugin/de.inetsoftware.jwebassembly)

szpak added a commit to Codearte/gradle-nexus-staging-plugin that referenced this issue Feb 20, 2020
szpak added a commit to szpak/gradle-pitest-plugin that referenced this issue Apr 16, 2020
@anatawa12
Copy link
Contributor

@paulmelnikow Can you/we add the Gradle Plugin Portal badge as an alias of #1125 (comment)?

The plugin marker artifact's group id is the id of the plugin and artifact id is <gradle plugin id>.gradle.plugin so It's possible to make an alias. I think it's not undocumented or reverse-engineered API endpoints because the Plugin Marker Artifact system is documented at Using Gradle Plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-upstream-help Not actionable without help from a service provider service-badge New or updated service badge
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants