Skip to content

Instantly share code, notes, and snippets.

@mateor
Created May 22, 2015 18:04
Show Gist options
  • Save mateor/ce2048b01eadb1dbc17f to your computer and use it in GitHub Desktop.
Save mateor/ce2048b01eadb1dbc17f to your computer and use it in GitHub Desktop.
Simple ivysettings.xml to interact with Android SDk (Google libraries and Android Support libraries)
<?xml version="1.0"?>
<!--
Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
Licensed under the Apache License, Version 2.0 (see LICENSE).
-->
<ivysettings>
<properties environment="env" />
<property name="env.ANDROID_HOME" value="/please-export-your-ANDROID_HOME" override="false"/>
<property name="android.repo.dir" value="${env.ANDROID_HOME}/extras/android/m2repository"/>
<property name="google.repo.dir" value="${env.ANDROID_HOME}/extras/google/m2repository"/>
<settings defaultResolver="chain-repos"/>
<resolvers>
<chain name="chain-repos" returnFirst="true">
<!-- maven central -->
<ibiblio name="maven2" m2compatible="true" root="https://repo1.maven.org/maven2/"/>
<!-- Android SDK Support Library, found in reference to the ANDROID_HOME variable. -->
<ibiblio name="local.android"
m2compatible="true"
usepoms="true"
root="file://${android.repo.dir}/"/>
<!-- Google Libraries for the Android SDK, found in reference to ANDROID_HOME. -->
<ibiblio name="local.google"
m2compatible="true"
usepoms="true"
root="file://${google.repo.dir}/"/>
</chain>
</resolvers>
</ivysettings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment