mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-15 03:52:05 +01:00
90cbcaebc7
which is the probably the better choice here anyway. And it also prevents the following failure on POM creation: $ gradle uploadArchives > Task :smack-android:uploadArchives FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':smack-android:uploadArchives'. > Could not publish configuration 'archives' > Could not write to file '/home/flo/data/code/smack/smack-android/build/poms/pom-default.xml'. See also https://discuss.gradle.org/t/gradle-fails-to-create-pom-with-the-configuration-to-scope-mapping-is-not-unique/32087
28 lines
1.1 KiB
Groovy
28 lines
1.1 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 {
|
|
implementation project(':smack-xmlparser-xpp3')
|
|
// Depend on minidns-android21 as optional dependency, even if may
|
|
// not need it. Can't hurt to have it in the programm path with
|
|
// the correct MiniDNS version as it won't hurt even if the
|
|
// Android version is smaller then 21. Note that we deliberatly do
|
|
// not add this to smack-minidns, as this dependency may also be
|
|
// used in non-Android projects.
|
|
compile "org.minidns:minidns-android21:$miniDnsVersion"
|
|
|
|
// androidProjects lists all projects that are checked to compile against android.jar
|
|
// Filter out the optional Smack dependencies from androidProjects
|
|
(androidProjects - androidOptionalProjects)
|
|
.each { project ->
|
|
compile project
|
|
}
|
|
|
|
// Add the Android jar to the Eclipse .classpath.
|
|
compile files(androidBootClasspath)
|
|
}
|