-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
37 lines (30 loc) · 924 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
base
kotlin("jvm") version "1.3.21" apply false
}
allprojects {
apply(plugin = "maven")
group = "me.mozidev.keepdefault"
version = "1.0"
repositories {
maven(url = "http://maven.aliyun.com/nexus/content/groups/public/")
maven(url = "https://maven.aliyun.com/repository/google")
maven(url = "https://jitpack.io")
}
tasks.withType<KotlinCompile>{
kotlinOptions.jvmTarget = "1.8"
}
}
configurations.all {
resolutionStrategy.dependencySubstitution.all {
requested.let {
if (it is ModuleComponentSelector && it.group == "com.github.zijing07.gsonkeepdefault") {
val targetProject = findProject(":${it.module}")
if (targetProject != null) {
useTarget(targetProject)
}
}
}
}
}