mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +01:00
2663a62033
smack-bosh was recently added to androidProjects, but it was not filtered out from the dependencies for smack-android. Since it is an optional dependency, it should not be a dependency of smack-android.
39 lines
No EOL
1.3 KiB
Groovy
39 lines
No EOL
1.3 KiB
Groovy
description = """\
|
|
Smack for Android.
|
|
All the required dependencies to run Smack on Android.
|
|
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.findAll {
|
|
![':smack-tcp', ':smack-extensions', ':smack-experimental', ':smack-bosh'].contains(it.getPath())
|
|
}.each { project ->
|
|
compile project
|
|
}
|
|
}
|
|
|
|
compileJava {
|
|
options.bootClasspath = androidBootClasspath
|
|
}
|
|
|
|
// 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 {
|
|
options.linksOffline "http://developer.android.com/reference", androidJavadocOffline
|
|
}
|
|
|
|
configure (androidProjects) {
|
|
task compileAndroid(type: JavaCompile) {
|
|
source = compileJava.source
|
|
classpath = compileJava.classpath
|
|
destinationDir = new File(buildDir, 'android')
|
|
options.bootClasspath = androidBootClasspath
|
|
}
|
|
}
|
|
|
|
test { dependsOn androidProjects*.compileAndroid } |