-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (49 loc) · 2.02 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* Copyright 2022, Petr Laštovička as Lasta apps, All rights reserved
*
* This file is part of ČVUT Bus.
*
* ČVUT Bus is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ČVUT Bus is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ČVUT Bus. If not, see <https://www.gnu.org/licenses/>.
*/
plugins {
val gradleVersion = "7.2.1"
id(Plugins.APPLICATION) version gradleVersion apply false
id(Plugins.LIBRARY) version gradleVersion apply false
id(Plugins.KOTLIN_MULTIPLATFORM) version Versions.KOTLIN apply false
id(Plugins.KOTLIN_ANDROID) version Versions.KOTLIN apply false
id(Plugins.KOTLIN_JVM) version Versions.KOTLIN apply false
id(Plugins.ABOUT_LIBRARIES) version Versions.ABOUT_LIBRARIES apply false
}
group = App.GROUP
version = App.VERSION_NAME
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
allprojects {
afterEvaluate {
// Remove log pollution until Android support in KMP improves.
// https://discuss.kotlinlang.org/t/disabling-androidandroidtestrelease-source-set-in-gradle-kotlin-dsl-script/21448/5
project.extensions.findByType<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>()
?.let { kmpExt ->
kmpExt.sourceSets.removeAll { sourceSet ->
setOf(
"androidAndroidTestRelease",
"androidTestFixtures",
"androidTestFixturesDebug",
"androidTestFixturesRelease",
).contains(sourceSet.name)
}
}
}
}