ok-gradle
ok-gradle copied to clipboard
Research for supporting local nexus repositories
Research about searching through internal nexus repositories added by a user (or fetched from repos declared in build.gradle files)
Would like to see support for configurable repositories and auth
Hey @digitalsanctum, do you currently have an access to such a repository? Could you verify couple of things for me, please? I was wondering whether those custom maven repositories contains files like those below:
https://<maven_url>/master-index.xml
https://<maven_url>/com/digitalsanctum/group-index.xml
(where your library's artifact name would be: com.digitalsanctum:core:1.0.0
)
For example, Google's repository contains following files: https://dl.google.com/dl/android/maven2/master-index.xml https://dl.google.com/dl/android/maven2/com/android/support/group-index.xml
@scana In my employer's particular case, it's an internally hosted Artifactory repository (version 5.4.6). I don't see any master-index.xml or group-index.xml files.
Perhaps this documentation could help:
- https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API
- https://www.jfrog.com/confluence/display/RTF/Browsing+Artifactory
Would be awesome if you could support local nexus.
Nexus has a rest api for searching for artifact: https://help.sonatype.com/repomanager3/rest-and-integration-api/search-api
I don't think that nexus repos necessarily have a master-index.xml
because nexus repository can also be groups or proxies for other repositories.
Thanks @Kinchkun, I will give it a try and setup a local docker-based nexus to test it.
I asked about master-index.xml
files as I used to have a local maven repository on an S3 bucket and thought that maybe this is a standard.