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 support for Bintray JCenter #760

Closed
matthurne opened this issue Aug 8, 2016 · 7 comments
Closed

Add support for Bintray JCenter #760

matthurne opened this issue Aug 8, 2016 · 7 comments

Comments

@matthurne
Copy link

Per https://bintray.com/bintray/jcenter,

JCenter is the place to find and share popular Apache Maven packages for use by Maven, Gradle, Ivy, SBT, etc.

Some open source projects in the Java ecosystem have chosen to publish builds to JCenter instead of Maven Central. Unfortunately, such projects are not currently represented in libraries.io

Since JCenter provides a "just another Maven repository" interface to build tools such as Maven and Gradle, perhaps including it in libraries.io can heavily leverage the work done to support Maven Central?

@andrew
Copy link
Contributor

andrew commented Aug 8, 2016

At the moment Maven Central makes it pretty hard to get data out of, so I'm using https://maven-repository.com/ as the list of packages at the moment which might mean there's no existing work that can be used to integrate jcenter but it would be great to add support for it.

At the moment Libraries's Maven support doesn't know about multiple sources so that'll need to be added, also do you know of any API for JCenter to get meta data about it's packages?

@matthurne
Copy link
Author

I don't think JCenter has an API of its own, but Bintray definitely does: https://bintray.com/docs/api/

You can think of JCenter as one instance of a Maven repo in Bintray. I'm not at all familiar with the Bintray API, but perhaps it could be used to deal with packages in JCenter while ignoring packages in other Bintray repositories.

@andrew
Copy link
Contributor

andrew commented Aug 8, 2016

That REST API looks like it will most of what's needed, but the 300 req/day rate limit is a killer, might need to get a Silver account to be able to do the first download of everything from there.

@matthurne
Copy link
Author

Hmm, yeah - perhaps there's justification for them to make an exception for this case, since libraries.io revolves around open source projects.

@matthurne
Copy link
Author

For giggles, a couple of example API calls:

➜  ~ curl -X GET -ufoo:bar https://api.bintray.com/repos/bintray/jcenter/packages | jq .
...
[
  ...
  {
    "name": "accessibilitools",
    "linked": true
  },
  {
    "name": "accesspoint",
    "linked": true
  },
  ...
]

➜  ~ curl -X GET -ufoo:bar https://api.bintray.com/packages/bintray/jcenter/accesspoint | jq .
...
{
  "name": "accesspoint",
  "repo": "maven",
  "owner": "mvdan",
  "desc": "Manage wireless access points in Android",
  "labels": [
    "access point",
    "android",
    "wifi"
  ],
  "attribute_names": [],
  "licenses": [
    "Apache-2.0"
  ],
  "custom_licenses": [],
  "followers_count": 0,
  "created": "2015-05-15T23:50:27.232Z",
  "website_url": "",
  "issue_tracker_url": "",
  "linked_to_repos": [
    "jcenter"
  ],
  "permissions": [],
  "versions": [
    "0.2.0",
    "0.1.3",
    "0.1.2",
    "0.1.1",
    "0.1.0"
  ],
  "latest_version": "0.2.0",
  "updated": "2016-01-27T14:01:41.690Z",
  "rating_count": 0,
  "system_ids": [
    "cc.mvdan.accesspoint:library"
  ],
  "vcs_url": "https://github.com/mvdan/accesspoint",
  "maturity": ""
}

@andrew
Copy link
Contributor

andrew commented Aug 8, 2016

Excellent, that's very nicely formatted, should make it easy to add once I've added the ability to index multiple maven repositories

@andrew
Copy link
Contributor

andrew commented Oct 9, 2017

Moving this to the Backlog as we'd still like to implement it but can't see that happening in the near future.

@andrew andrew closed this as completed Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants