mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-24 23:32:05 +01:00
28 lines
946 B
Groovy
28 lines
946 B
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
|
|
}
|
|
}
|
|
|
|
configure (androidProjects) {
|
|
task compileAndroid(type: JavaCompile) {
|
|
source = compileJava.source
|
|
classpath = compileJava.classpath
|
|
destinationDir = new File(buildDir, 'android')
|
|
options.bootClasspath = androidBootClasspath
|
|
}
|
|
}
|
|
|
|
test { dependsOn androidProjects*.compileAndroid }
|