Created
September 17, 2015 23:15
-
-
Save tophyr/e85c459b76f1f37ae18f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
repositories { | |
maven { url "https://maven.cyngn.com/artifactory/repo" } | |
jcenter() | |
mavenLocal() | |
} | |
dependencies { | |
def firstAndroidVariant = project(':core').android.applicationVariants.toList().first() | |
testCompile firstAndroidVariant.javaCompile.classpath | |
testCompile firstAndroidVariant.javaCompile.outputs.files | |
testCompile 'org.robolectric:android-all:5.0.0_r2-robolectric-0' | |
testCompile 'org.hamcrest:hamcrest-all:1.3' | |
testCompile('org.mockito:mockito-core:1.+') { | |
exclude(module: 'hamcrest-core') | |
} | |
testCompile('junit:junit:4.11') { | |
exclude module: 'hamcrest-core' | |
} | |
testCompile('org.robolectric:robolectric:<your_robo_version>') { | |
exclude module: 'classworlds' | |
exclude module: 'commons-logging' | |
exclude module: 'httpclient' | |
exclude module: 'maven-artifact' | |
exclude module: 'maven-artifact-manager' | |
exclude module: 'maven-error-diagnostics' | |
exclude module: 'maven-model' | |
exclude module: 'maven-project' | |
exclude module: 'maven-settings' | |
exclude module: 'plexus-container-default' | |
exclude module: 'plexus-interpolation' | |
exclude module: 'plexus-utils' | |
exclude module: 'wagon-file' | |
exclude module: 'wagon-http-lightweight' | |
exclude module: 'wagon-provider-api' | |
} | |
} | |
test { | |
jvmArgs '-noverify' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment