Created
July 15, 2014 04:59
-
-
Save mediavrog/b8f4252e58a4d9ee20c0 to your computer and use it in GitHub Desktop.
Simple gradle build file for legacy structure library projects
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
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