Skip to content

Instantly share code, notes, and snippets.

@martinbonnin
Created June 21, 2021 08:38
Show Gist options
  • Save martinbonnin/ccf0a6a68d2673351af54cb89ff6d0dd to your computer and use it in GitHub Desktop.
Save martinbonnin/ccf0a6a68d2673351af54cb89ff6d0dd to your computer and use it in GitHub Desktop.
repositories {
// Usually you'll have mavenCentral() there but this is just a shortcut
// to the full version
maven("https://repo1.maven.org/maven2/")
}
dependencies {
// GAV coordinates goes here
// This all works because there's a file at
// https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/4.9.1/okhttp-4.9.1.jar
// The general maven layout is:
// ${group.replace(".", "/")}/$artifact/$version/$artifact-$version.jar
// ${group.replace(".", "/")}/$artifact/$version/$artifact-$version.pom
// ...
implementation("com.squareup.okhttp3:okhttp:4.9.1")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment