Skip to content

Instantly share code, notes, and snippets.

@jin
Last active March 28, 2019 20:14
Show Gist options
  • Save jin/19c9b2971c832d17c131fcda23b840bd to your computer and use it in GitHub Desktop.
Save jin/19c9b2971c832d17c131fcda23b840bd to your computer and use it in GitHub Desktop.

Revisions

  1. jin revised this gist Mar 28, 2019. 1 changed file with 18 additions and 1 deletion.
    19 changes: 18 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,21 @@
    $ 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
    # 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",
    ],
    )
  2. jin created this gist Mar 28, 2019.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    $ 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