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 {
|
2014-09-19 11:27:40 +02:00
|
|
|
// Filter out the optional Smack dependencies from androidProjects
|
|
|
|
androidProjects.findAll {
|
|
|
|
![':smack-tcp', ':smack-extensions', ':smack-experimental'].contains(it.getPath())
|
|
|
|
}.each { project ->
|
2014-08-01 10:34:47 +02:00
|
|
|
compile project
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
2014-09-22 09:58:09 +02:00
|
|
|
options.bootClasspath = androidBootClasspath
|
2014-08-01 10:34:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// See http://stackoverflow.com/a/2823592/194894
|
|
|
|
// TODO this doesn't seem to work right now. But on the other hand it
|
|
|
|
// is not really required, just to avoid a javadoc compiler warning
|
|
|
|
javadoc {
|
2014-09-22 09:58:09 +02:00
|
|
|
options.linksOffline "http://developer.android.com/reference", androidJavadocOffline
|
2014-08-01 10:34:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
test { dependsOn androidProjects*.compileAndroid }
|