Skip to content

Instantly share code, notes, and snippets.

@mediavrog
Created July 15, 2014 04:59
Show Gist options
  • Save mediavrog/b8f4252e58a4d9ee20c0 to your computer and use it in GitHub Desktop.
Save mediavrog/b8f4252e58a4d9ee20c0 to your computer and use it in GitHub Desktop.
Simple gradle build file for legacy structure library projects
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}
apply plugin: 'com.android.library'
dependencies {
// Support Libraries
compile fileTree(dir: 'libs', include: '*.jar')
}
android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
defaultConfig {
minSdkVersion 8
targetSdkVersion Integer.parseInt(project.ANDROID_TARGET_SDK_VERSION)
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment