mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2024-06-13 23:24:53 +02:00
f6b4341a30
Since xpp3 is only declared as 'implementation' in smack-xmlparser-xpp3, whereas xpp3_min is declared as 'api'. This means that only xpp3_min is pulled in by the build system, but as it is already provided by Android, we need to exclude it again.
48 lines
1.1 KiB
Groovy
48 lines
1.1 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.5.1'
|
|
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
}
|
|
|
|
apply from: 'version.gradle'
|
|
|
|
allprojects {
|
|
ext {
|
|
rootConfigDir = new File(rootDir, 'config')
|
|
}
|
|
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
mavenLocal()
|
|
|
|
// Smack nightly unique snapshots repo
|
|
//maven {
|
|
// url 'https://igniterealtime.org/repo/'
|
|
// }
|
|
}
|
|
|
|
configurations {
|
|
// Exclude XmlPullParser from Smack dependencies, as its now provided by Android
|
|
// https://stackoverflow.com/questions/48488563/gradle-xpp3-error/48746294#48746294
|
|
all {
|
|
exclude group: 'xpp3', module: 'xpp3_min'
|
|
}
|
|
}
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|