mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-29 07:22:07 +01:00
Make smack-android/smack-java7 declare minimal dependencies
This commit is contained in:
parent
37eeb07376
commit
a2ffaeca1f
2 changed files with 9 additions and 8 deletions
|
@ -1,6 +1,8 @@
|
||||||
description = """\
|
description = """\
|
||||||
Smack for Android.
|
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 {
|
ext {
|
||||||
smackMinAndroidSdk = 8
|
smackMinAndroidSdk = 8
|
||||||
|
@ -10,7 +12,10 @@ ext {
|
||||||
// Note that the test dependencies (junit, …) are inferred from the
|
// Note that the test dependencies (junit, …) are inferred from the
|
||||||
// sourceSet.test of the core subproject
|
// sourceSet.test of the core subproject
|
||||||
dependencies {
|
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
|
compile project
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
description = """\
|
description = """\
|
||||||
Smack for Java7 (or higher).
|
Smack for Java7 (or higher).
|
||||||
This is a pseudo-artifact that pulls all the required dependencies to
|
This is a pseudo-artifact that pulls all the required dependencies to
|
||||||
run Smack on Java 7 (or higher) JVMs. You can add further dependencies
|
run Smack on Java 7 (or higher) JVMs. Usually you want to add additional
|
||||||
like smack-bosh, run with a minimal subset by don't depending on
|
dependencies to smack-tcp, smack-extensions and smack-experimental."""
|
||||||
smack-java7, but using e.g. just smack-core, smack-tcp and
|
|
||||||
smack-resolver-javax"""
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(":smack-core")
|
compile project(":smack-core")
|
||||||
compile project(":smack-extensions")
|
|
||||||
compile project(":smack-tcp")
|
|
||||||
compile project(":smack-resolver-javax")
|
compile project(":smack-resolver-javax")
|
||||||
compile project(":smack-sasl-javax")
|
compile project(":smack-sasl-javax")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue