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 17 /* 18 * This file was generated by the Gradle 'init' task. 19 * 20 * This generated file contains a sample Java library project to get you started. 21 * For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle 22 * User Manual available at https://docs.gradle.org/7.5.1/userguide/building_java_projects.html 23 * This project uses @Incubating APIs which are subject to change. 24 */ 25 <lambda>null26plugins { 27 // Apply the java-library plugin for API and implementation separation. 28 `java-library` 29 kotlin("jvm") version "1.8.0" 30 id("me.champeau.jmh") version "0.7.1" 31 } 32 <lambda>null33repositories { 34 // Use Maven Central for resolving dependencies. 35 mavenCentral() 36 } 37 <lambda>null38dependencies { 39 // This dependency is exported to consumers, that is to say found on their compile classpath. 40 api("org.apache.commons:commons-math3:3.6.1") 41 42 // This dependency is used internally, and not exposed to consumers on their own compile classpath. 43 implementation("com.google.guava:guava:31.1-jre") 44 implementation("com.google.code.findbugs:jsr305:3.0.2") 45 implementation(kotlin("stdlib")) 46 testImplementation("org.junit.jupiter:junit-jupiter:5.9.2") 47 testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2") 48 } 49 <lambda>null50kotlin { 51 jvmToolchain(17) 52 } 53 <lambda>null54tasks.jmh { 55 jvmArgs.value(mutableListOf("-Djava.library.path=$projectDir/../../../../target/release")) 56 } 57 <lambda>null58tasks.test { 59 useJUnitPlatform() 60 jvmArgs = mutableListOf("-Djava.library.path=$projectDir/../../../../target/debug") 61 } 62