Skip to content

Instantly share code, notes, and snippets.

@granoeste
Created November 5, 2014 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save granoeste/4a27f3a3b844ad7d9505 to your computer and use it in GitHub Desktop.
Save granoeste/4a27f3a3b844ad7d9505 to your computer and use it in GitHub Desktop.
Android Studio build.gradle Template of dependencies
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
apply plugin: 'android-power-assert'
group = 'net.granoeste'
version = '1.0.0'
def AAVersion = '3.0.1'
android {
compileSdkVersion 21
buildToolsVersion "21.0.2"
defaultConfig {
applicationId "net.granoeste.sample"
minSdkVersion 10
targetSdkVersion 21
versionCode 1
versionName $version
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
}
dependencies {
apt "org.androidannotations:androidannotations:$AAVersion"
compile "org.androidannotations:androidannotations-api:$AAVersion"
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.+'
compile 'com.android.support:support-v4:21.0.+'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.squareup:otto:1.3.5'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.squareup.retrofit:retrofit:1.7.1'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
compile 'com.squareup.okhttp:okhttp:2.0.0'
compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
compile 'jp.mixi.compatibility:AndroidDeviceCompatibility:0.1.0'
compile('ch.acra:acra:4.5.0') {
exclude group: 'org.json'
}
}
apt {
arguments {
resourcePackageName android.defaultConfig.packageName
androidManifestFile variant.processResources.manifestFile
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment