Modernize build a bit (#1383)

This commit is contained in:
Zac Sweers
2021-08-23 17:09:59 -04:00
committed by GitHub
parent 95250b0359
commit 6947ab00d0
18 changed files with 113 additions and 153 deletions

View File

@@ -72,10 +72,10 @@ tasks.withType<KotlinCompile>()
dependencies {
// So the j16 source set can "see" main Moshi sources
"java16Implementation"(mainSourceSet.output)
compileOnly(Dependencies.jsr305)
api(Dependencies.okio)
compileOnly(libs.jsr305)
api(libs.okio)
testCompileOnly(Dependencies.jsr305)
testImplementation(Dependencies.Testing.junit)
testImplementation(Dependencies.Testing.truth)
testCompileOnly(libs.jsr305)
testImplementation(libs.junit)
testImplementation(libs.truth)
}

View File

@@ -25,7 +25,7 @@ val baseline = configurations.create("baseline")
val latest = configurations.create("latest")
dependencies {
baseline("com.squareup.moshi:moshi:1.11.0") {
baseline("com.squareup.moshi:moshi:1.12.0") {
isTransitive = false
isForce = true
}

View File

@@ -24,7 +24,7 @@ tasks.withType<JavaCompile>().configureEach {
dependencies {
testImplementation(project(":moshi"))
testCompileOnly(Dependencies.jsr305)
testImplementation(Dependencies.Testing.junit)
testImplementation(Dependencies.Testing.truth)
testCompileOnly(libs.jsr305)
testImplementation(libs.junit)
testImplementation(libs.truth)
}