Skip to content

Commit

Permalink
Update build files
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed May 10, 2024
1 parent 8c7dade commit e050ac0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ spotless = { id = "com.diffplug.spotless", version = "6.25.0" }
[libraries]
agp = { module = "com.android.tools.build:gradle", version.ref = "agp" }

assertj = "org.assertj:assertj-core:3.25.3"

autoCommon = { module = "com.google.auto:auto-common", version = "1.2.2" }

autoService = { module = "com.google.auto.service:auto-service-annotations", version.ref = "autoService" }
Expand Down
6 changes: 1 addition & 5 deletions moshi-adapters/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@
* limitations under the License.
*/

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.kotlinJvm)
alias(libs.plugins.ksp)
alias(libs.plugins.mavenPublish)
}

tasks.named<KotlinCompile>("compileTestKotlin") {
compilerOptions { freeCompilerArgs.add("-opt-in=kotlin.ExperimentalStdlibApi") }
}
tasks.compileTestKotlin { compilerOptions { optIn.add("kotlin.ExperimentalStdlibApi") } }

dependencies {
implementation(libs.moshi)
Expand Down
6 changes: 1 addition & 5 deletions moshi-immutable-adapters/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@
* limitations under the License.
*/

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.kotlinJvm)
alias(libs.plugins.ksp)
alias(libs.plugins.mavenPublish)
}

tasks.named<KotlinCompile>("compileTestKotlin") {
compilerOptions { freeCompilerArgs.add("-opt-in=kotlin.ExperimentalStdlibApi") }
}
tasks.compileTestKotlin { compilerOptions { optIn.add("kotlin.ExperimentalStdlibApi") } }

dependencies {
api(libs.kotlinx.immutable)
Expand Down
8 changes: 2 additions & 6 deletions moshi-metadata-reflect/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,19 @@
* limitations under the License.
*/

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm")
id("com.google.devtools.ksp")
id("com.vanniktech.maven.publish")
}

tasks.named<KotlinCompile>("compileTestKotlin") {
compilerOptions { freeCompilerArgs.add("-opt-in=kotlin.ExperimentalStdlibApi") }
}
tasks.compileTestKotlin { compilerOptions { optIn.add("kotlin.ExperimentalStdlibApi") } }

dependencies {
implementation(libs.kotlin.metadata)
implementation(libs.moshi)
kspTest(libs.moshi.codegen)
testImplementation("org.assertj:assertj-core:3.25.3")
testImplementation(libs.assertj)
testImplementation(libs.junit)
testImplementation(libs.truth)
}

0 comments on commit e050ac0

Please sign in to comment.