robospice
robospice copied to clipboard
Android Spring Robospice gradle file
Hello.
I tried using the Robospice Spring Android sample for gradle as is and I noticed that the build.gradle file is outdated.
I spent a bit of time on it and I have come up with a build.gradle that works. I didn't change any other file in the sample, only build.gradle.
Can you please update your build.gradle file to the below?
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' } }
apply plugin: 'android'
repositories{ mavenLocal() mavenCentral() }
dependencies { compile 'com.octo.android.robospice:robospice-spring-android:1.4.14' compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.11' compile 'commons-io:commons-io:1.3.2' }
android { buildToolsVersion "22.0.1" compileSdkVersion 19
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
exclude 'META-INF/NOTICE.txt'
}
}
allprojects { repositories { mavenCentral() } }