forked from flexbooru/flexbooru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
76 lines (70 loc) · 2.61 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* Copyright (C) 2020. by onlymash <fiepi.dev@gmail.com>, All rights reserved
*
* This program 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.
*
* This program 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
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
@file:Suppress("UnstableApiUsage")
plugins {
id("com.github.ben-manes.versions") version("0.46.0")
}
buildscript {
apply(from = "repositories.gradle.kts")
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven(url = "https://jitpack.io")
maven(url = "https://plugins.gradle.org/m2/")
}
dependencies {
val navigationVersion = "2.5.3"
val kotlinVersion = rootProject.extra["kotlin_version"].toString()
classpath(rootProject.extra["android_gradle_plugin"].toString())
classpath(kotlin("gradle-plugin", kotlinVersion))
classpath(kotlin("serialization", kotlinVersion))
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion")
classpath("com.google.android.gms:oss-licenses-plugin:0.10.6")
classpath("com.google.gms:google-services:4.3.15")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.4")
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven(url = "https://jitpack.io")
maven(url = "https://s01.oss.sonatype.org/content/repositories/releases/")
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile::class.java) {
options.compilerArgs.plusAssign(listOf("-Xlint:deprecation"))
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
subprojects {
afterEvaluate {
project.extensions.findByType<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>()?.let { ext ->
ext.sourceSets.removeAll { sourceSet ->
setOf(
"androidAndroidTestRelease",
"androidTestFixtures",
"androidTestFixturesDebug",
"androidTestFixturesRelease",
).contains(sourceSet.name)
}
}
}
}