1 /* 2 * Copyright 2023 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 <lambda>null17plugins { 18 id("java") 19 kotlin("jvm") version "1.9.0" 20 } 21 <lambda>null22kotlin { 23 jvmToolchain { 24 languageVersion.set(JavaLanguageVersion.of("17")) 25 } 26 } 27 28 group = "com.google.android.gms.nearby.presence.hazmat" 29 version = "1.0-SNAPSHOT" 30 <lambda>null31repositories { 32 mavenCentral() 33 google() 34 } 35 <lambda>null36dependencies { 37 testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1") 38 testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1") 39 implementation(kotlin("stdlib")) 40 implementation("androidx.annotation:annotation:1.6.0") 41 } 42 43 tasks.getByName<Test>("test") { 44 useJUnitPlatform() 45 jvmArgs = mutableListOf("-Djava.library.path=../../../../target/debug") <lambda>null46 testLogging { 47 events("passed", "skipped", "failed") 48 } 49 }