gradle-nexus / publish-plugin

Gradle plugin for publishing to Nexus repositories
Apache License 2.0
404 stars 29 forks source link

📈 Provide task to generate downloads statistics #80

Open marcphilipp opened 3 years ago

marcphilipp commented 3 years ago

I have a prototype that can generate charts like this one: image

If there's interest, we could make that into a custom task.

szpak commented 3 years ago

It looks really nice. What is the source of those stats? Nexus stats? Gradle Plugin Portal stats? Something else?

marcphilipp commented 3 years ago

https://oss.sonatype.org/#central-stat has a CSV download functionality that was relatively easy to reverse engineer. The task downloads a CSV for each month and artifact id and generates an HTML page that uses some Javascript charting library.

szpak commented 3 years ago

I've seen the stats, but I missed the fact I can download them as CSV. We just have to start publishing to Maven Central before ;-). However, probably there is also some internal way to fetch CSV from the Portal :-).