2014-08-01 10:34:47 +02:00
|
|
|
description = """\
|
|
|
|
Smack for Android.
|
2014-09-19 11:27:40 +02:00
|
|
|
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,
|
2014-09-19 11:27:40 +02:00
|
|
|
smack-extensions and smack-experimental."""
|
2014-08-01 10:34:47 +02:00
|
|
|
|
|
|
|
// Note that the test dependencies (junit, …) are inferred from the
|
|
|
|
// sourceSet.test of the core subproject
|
|
|
|
dependencies {
|
2015-02-19 13:20:58 +01:00
|
|
|
// androidProjects lists all projects that are checked to compile against android.jar
|
2014-09-19 11:27:40 +02:00
|
|
|
// Filter out the optional Smack dependencies from androidProjects
|
|
|
|
androidProjects.findAll {
|
2015-02-19 13:20:58 +01:00
|
|
|
![':smack-tcp', ':smack-extensions', ':smack-experimental', ':smack-bosh'].contains(it.getPath())
|
2014-09-19 11:27:40 +02:00
|
|
|
}.each { project ->
|
2014-08-01 10:34:47 +02:00
|
|
|
compile project
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
configure (androidProjects) {
|
|
|
|
task compileAndroid(type: JavaCompile) {
|
|
|
|
source = compileJava.source
|
|
|
|
classpath = compileJava.classpath
|
|
|
|
destinationDir = new File(buildDir, 'android')
|
2014-09-22 09:58:09 +02:00
|
|
|
options.bootClasspath = androidBootClasspath
|
2014-08-01 10:34:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-21 18:56:27 +01:00
|
|
|
test { dependsOn androidProjects*.compileAndroid }
|