1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-01 01:35:59 +01:00
Smack/smack-android/build.gradle

31 lines
952 B
Groovy
Raw Normal View History

description = """\
Smack for Android.
All the required dependencies to run Smack on Android.
2014-11-21 14:23:13 +01:00
Usually you want to add additional dependencies like smack-tcp,
smack-extensions and smack-experimental."""
// Note that the test dependencies (junit, …) are inferred from the
// sourceSet.test of the core subproject
dependencies {
// androidProjects lists all projects that are checked to compile against android.jar
// Filter out the optional Smack dependencies from androidProjects
(androidProjects - androidOptionalProjects)
.each { project ->
compile project
}
2016-02-24 10:46:00 +01:00
// Add the Android jar to the Eclipse .classpath.
compile files(androidBootClasspath)
}
configure (androidProjects) {
task compileAndroid(type: JavaCompile) {
source = compileJava.source
classpath = compileJava.classpath
destinationDir = new File(buildDir, 'android')
options.bootClasspath = androidBootClasspath
}
}
2015-03-21 18:56:27 +01:00
test { dependsOn androidProjects*.compileAndroid }