Skip to content

Instantly share code, notes, and snippets.

@jin
Last active March 28, 2019 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jin/19c9b2971c832d17c131fcda23b840bd to your computer and use it in GitHub Desktop.
Save jin/19c9b2971c832d17c131fcda23b840bd to your computer and use it in GitHub Desktop.
Set up local private Artifactory instance in Docker
$ docker pull docker.bintray.io/jfrog/artifactory-oss:latest
$ docker run --name artifactory -d -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:latest
# Go to http://localhost:8081, set up admin password, skip proxy setup.
# Add a new remote Maven repo for Google Maven. URL: https://maven.google.com
# In rules_jvm_external,
maven_install(
artifacts = [
"androidx.appcompat:appcompat:1.0.2",
"androidx.annotation:annotation:1.0.2",
"androidx.test.ext:junit:1.1.0",
"org.robolectric:robolectric:4.1",
"org.assertj:assertj-core:3.12.1"
],
repositories = [
"http://admin:password@localhost:8081/artifactory/jcenter",
"http://admin:password@localhost:8081/artifactory/google",
],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment