Skip to content

Instantly share code, notes, and snippets.

@joekr joekr/build.gradle
Created Oct 24, 2013

Embed
What would you like to do?
default build.gradle for libraries.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5+'
}
}
apply plugin: 'android-library'
dependencies {
compile project(':libraries:Support')
}
android {
compileSdkVersion 17
buildToolsVersion "17"
defaultConfig {
minSdkVersion 7
targetSdkVersion 17
}
sourceSets {
main {
manifest.srcFile 'library/AndroidManifest.xml'
java.srcDirs = ['library/src']
resources.srcDirs = ['library/src']
aidl.srcDirs = ['library/src']
renderscript.srcDirs = ['library/src']
res.srcDirs = ['library/res']
assets.srcDirs = ['library/assets']
}
instrumentTest.setRoot('tests')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.