From 0af797f613799aa5fa2841c43ea47a53776050bb Mon Sep 17 00:00:00 2001 From: Simon Marquis Date: Mon, 14 Aug 2023 13:29:50 +0200 Subject: [PATCH] Add missing test dependencies --- gradle/libs.versions.toml | 2 ++ lint/build.gradle.kts | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 60d827c0e..1d1aa90e0 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -122,6 +122,8 @@ kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-cor kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version.ref = "kotlinxDatetime" } kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" } lint-api = { group = "com.android.tools.lint", name = "lint-api", version.ref = "lint" } +lint-checks = { group = "com.android.tools.lint", name = "lint-checks", version.ref = "lint" } +lint-tests = { group = "com.android.tools.lint", name = "lint-tests", version.ref = "lint" } okhttp-logging = { group = "com.squareup.okhttp3", name = "logging-interceptor", version.ref = "okhttp" } protobuf-kotlin-lite = { group = "com.google.protobuf", name = "protobuf-kotlin-lite", version.ref = "protobuf" } protobuf-protoc = { group = "com.google.protobuf", name = "protoc", version.ref = "protobuf" } diff --git a/lint/build.gradle.kts b/lint/build.gradle.kts index c7032cf40..5f90d1e45 100644 --- a/lint/build.gradle.kts +++ b/lint/build.gradle.kts @@ -29,7 +29,7 @@ java { targetCompatibility = JavaVersion.VERSION_11 } -tasks.withType().configureEach { +tasks.withType { kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } @@ -38,4 +38,7 @@ tasks.withType().configureEach { dependencies { compileOnly(libs.kotlin.stdlib) compileOnly(libs.lint.api) + testImplementation(libs.lint.checks) + testImplementation(libs.lint.tests) + testImplementation(kotlin("test")) }