Quantcast
Channel: Download from Github Package Registry without authentication
Viewing all articles
Browse latest Browse all 60

Download from Github Package Registry without authentication

$
0
0

Let me confirm that @jcansdale solution using an encoded generated by gpr CLI is working. Here is the setup I am currently using to grab the packages with Gradle:

Gradle script on Gist:

repositories {
    maven {
        name = 'GitHubPackages'
        url = uri("https://maven.pkg.github.com/<organization>/${orgRepo}")
        credentials {
            username = 'token'
            password = '\u0033\u0036\u0038\u0033\u0030\u0034\u0038...'
        }
    }
}

Project Gradle script:

// Github Packages repository credentials
project.ext.orgRepo = '<repo_name>'
apply from: `<link_to_gist>`

dependencies {
    implementation '<organization_namespace>'
}

For now this is working and is not too much of a hassle for users to setup.

Read full topic


Viewing all articles
Browse latest Browse all 60

Trending Articles