Skip to content

Commit

Permalink
feat: configure sub artifacts to depend on remote libs, and replace t…
Browse files Browse the repository at this point in the history
…o local projects when debugging
  • Loading branch information
zijing07 committed Mar 18, 2019
1 parent 2439a2f commit 68169e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
18 changes: 14 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.3.21"
kotlin("jvm") version "1.3.21" apply false
}

allprojects {
Expand All @@ -14,13 +14,23 @@ allprojects {
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"
}
}

repositories {
maven(url = "https://jitpack.io")
}
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)
}
}
}
}
}
1 change: 0 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ dependencies {
implementation(kotlin("stdlib"))

kaptTest(project(":processor"))
testImplementation(project(":processor"))
testImplementation("junit", "junit", "4.12")
}
3 changes: 0 additions & 3 deletions processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ dependencies {
implementation("com.google.auto.service:auto-service:1.0-rc4")
kapt("com.google.auto.service:auto-service:1.0-rc4")
implementation("me.eugeniomarletti.kotlin.metadata:kotlin-metadata:1.4.0")

kaptTest(project(":processor"))
testImplementation("junit", "junit", "4.12")
}

0 comments on commit 68169e1

Please sign in to comment.