1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 00:59:39 +02:00

Make smack-android/smack-java7 declare minimal dependencies

This commit is contained in:
Florian Schmaus 2014-09-19 11:27:40 +02:00
parent 37eeb07376
commit a2ffaeca1f
2 changed files with 9 additions and 8 deletions

View file

@ -1,6 +1,8 @@
description = """\
Smack for Android.
All the required dependencies to run Smack on Android"""
All the required dependencies to run Smack on Android.
Usually you want to add additional dependencies to smack-tcp,
smack-extensions and smack-experimental."""
ext {
smackMinAndroidSdk = 8
@ -10,7 +12,10 @@ ext {
// Note that the test dependencies (junit, ) are inferred from the
// sourceSet.test of the core subproject
dependencies {
androidProjects.each { project ->
// Filter out the optional Smack dependencies from androidProjects
androidProjects.findAll {
![':smack-tcp', ':smack-extensions', ':smack-experimental'].contains(it.getPath())
}.each { project ->
compile project
}
}