Skip to content

Instantly share code, notes, and snippets.

@curioustechizen
Forked from JakeWharton/build.gradle
Last active August 29, 2015 14:09
Show Gist options
  • Save curioustechizen/901223a5c7c62b033c43 to your computer and use it in GitHub Desktop.
Save curioustechizen/901223a5c7c62b033c43 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
def logger = new com.android.build.gradle.internal.LoggerWrapper(project.logger)
def sdkHandler = new com.android.build.gradle.internal.SdkHandler(project, logger)
for (File file : sdkHandler.sdkLoader.repositories) {
project.repositories.maven {
url = file.toURI()
}
}
dependencies {
compile 'com.android.support:support-annotations:20.0.0'
compile 'com.google.guava:guava:17.0'
compile 'com.squareup:javawriter:2.5.0'
testCompile 'junit:junit:4.11'
testCompile 'com.google.testing.compile:compile-testing:0.5'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment