| /* |
| * Copyright 2024 Google LLC |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| plugins { |
| id("com.adarshr.test-logger") version "4.0.0" |
| id("com.google.devtools.ksp") version ("2.2.0-2.0.2") |
| id("org.jetbrains.kotlin.jvm") version "2.2.0" |
| } |
| |
| repositories { mavenCentral() } |
| |
| dependencies { |
| implementation("co.nstant.in:cbor:0.9") |
| implementation("com.google.code.gson:gson:2.11.0") |
| implementation("com.google.guava:guava:33.3.1-android") |
| implementation("com.google.protobuf:protobuf-javalite:4.28.3") |
| implementation("org.bouncycastle:bcpkix-jdk18on:1.78.1") |
| implementation("org.jetbrains.kotlin:kotlin-stdlib:2.2.0") |
| |
| testImplementation(kotlin("test")) |
| testImplementation("com.google.testparameterinjector:test-parameter-injector:1.18") |
| testImplementation("com.google.truth:truth:1.4.4") |
| |
| // Required to run JUnit 4 tests. |
| testRuntimeOnly("org.junit.vintage:junit-vintage-engine") |
| } |
| |
| java { toolchain { languageVersion = JavaLanguageVersion.of(21) } } |
| |
| tasks { |
| test { |
| useJUnitPlatform() |
| testLogging { exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL } |
| } |
| } |