-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (42 loc) · 1.88 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
/*
* Copyright (c) 2022 Matthias Geisler (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
import tech.antibytes.gradle.wikidata.dependency.addCustomRepositories
plugins {
id("tech.antibytes.gradle.wikidata.dependency")
id("tech.antibytes.gradle.dependency")
id("tech.antibytes.gradle.wikidata.script.quality-spotless")
}
allprojects {
repositories {
addCustomRepositories()
mavenCentral()
google()
}
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin" && requested.name == "kotlin-stdlib-jdk8" && requested.version == "1.5.30") {
useVersion(tech.antibytes.gradle.dependency.Version.kotlin.stdlib)
because("Avoid resolution conflicts")
}
if (requested.group == "org.jetbrains.kotlinx" && requested.name == "kotlinx-coroutines-core" && requested.version == "1.5.0-native-mt") {
useVersion(tech.antibytes.gradle.dependency.Version.kotlin.coroutines)
because("Avoid resolution conflicts")
}
if (requested.group == "org.jetbrains.kotlinx" && requested.name == "kotlinx-coroutines-core-jvm" && requested.version == "1.5.0-native-mt") {
useVersion(tech.antibytes.gradle.dependency.Version.kotlin.coroutines)
because("Avoid resolution conflicts")
}
if (requested.group == "org.jetbrains.kotlinx" && requested.name == "kotlinx-coroutines-core-android" && requested.version == "1.5.0-native-mt") {
useVersion(tech.antibytes.gradle.dependency.Version.kotlin.coroutines)
because("Avoid resolution conflicts")
}
}
}
}
tasks.named<Wrapper>("wrapper") {
gradleVersion = "7.4.2"
distributionType = Wrapper.DistributionType.ALL
}