File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22
33plugins {
4- kotlin(" jvm" ) version " 1.3.21"
4+ kotlin(" jvm" ) version " 1.3.21" apply false
55}
66
77allprojects {
@@ -14,13 +14,23 @@ allprojects {
1414 repositories {
1515 maven(url = " http://maven.aliyun.com/nexus/content/groups/public/" )
1616 maven(url = " https://maven.aliyun.com/repository/google" )
17+ maven(url = " https://jitpack.io" )
1718 }
1819
1920 tasks.withType<KotlinCompile >{
2021 kotlinOptions.jvmTarget = " 1.8"
2122 }
2223}
2324
24- repositories {
25- maven(url = " https://jitpack.io" )
26- }
25+ configurations.all {
26+ resolutionStrategy.dependencySubstitution.all {
27+ requested.let {
28+ if (it is ModuleComponentSelector && it.group == " com.github.zijing07.gsonkeepdefault" ) {
29+ val targetProject = findProject(" :${it.module} " )
30+ if (targetProject != null ) {
31+ useTarget(targetProject)
32+ }
33+ }
34+ }
35+ }
36+ }
Original file line number Diff line number Diff line change @@ -8,6 +8,5 @@ dependencies {
88 implementation(kotlin(" stdlib" ))
99
1010 kaptTest(project(" :processor" ))
11- testImplementation(project(" :processor" ))
1211 testImplementation(" junit" , " junit" , " 4.12" )
1312}
Original file line number Diff line number Diff line change @@ -10,7 +10,4 @@ dependencies {
1010 implementation(" com.google.auto.service:auto-service:1.0-rc4" )
1111 kapt(" com.google.auto.service:auto-service:1.0-rc4" )
1212 implementation(" me.eugeniomarletti.kotlin.metadata:kotlin-metadata:1.4.0" )
13-
14- kaptTest(project(" :processor" ))
15- testImplementation(" junit" , " junit" , " 4.12" )
1613}
You can’t perform that action at this time.
0 commit comments