I'm trying to use Github packages as a maven repository.
When I point directly to a repo like this :
repositories {
maven {
url = uri("https://maven.pkg.github.com/ORG/REPO")
credentials {
username = 'some-user'
password = 'github-token-with-repo-scope'
}
}
}
And pulling the dependency like this:
dependencies{
implementation 'groupId:artifcatId:1.0.0-snapshot'
}
It works.
But if I don't want to limit maven url to specific repo , and use ORG url directly
url = uri("https://maven.pkg.github.com/ORG')
It won't find the same artifcat saying:
Could not find groupId:artifcatId:1.0.0-snapshot.
I have tried adding REPO name to dependency declaration
dependencies{
implementation 'REPO:groupId:artifcatId:1.0.0-snapshot'
}
It still wont work.
Anyone has a clue how to use ORG url as a MAVEN REPOSITORY , instead of adding multiple urls to each repo (and multiplying the login calls etc... )
Thanks!