56 lines
No EOL
1.7 KiB
Kotlin
56 lines
No EOL
1.7 KiB
Kotlin
/*
|
|
* This file was generated by the Gradle 'init' task.
|
|
*
|
|
* This generated file contains a sample Kotlin library project to get you started.
|
|
* For more details on building Java & JVM projects, please refer to https://docs.gradle.org/8.14.2/userguide/building_java_projects.html in the Gradle documentation.
|
|
*/
|
|
|
|
plugins {
|
|
// Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
|
|
alias(libs.plugins.kotlin.jvm)
|
|
|
|
// Apply the java-library plugin for API and implementation separation.
|
|
`java-library`
|
|
}
|
|
|
|
repositories {
|
|
// Use Maven Central for resolving dependencies.
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// Use the Kotlin JUnit 5 integration.
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
|
|
|
|
// Use the JUnit 5 integration.
|
|
testImplementation(libs.junit.jupiter.engine)
|
|
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
|
|
// This dependency is exported to consumers, that is to say found on their compile classpath.
|
|
api(libs.commons.math3)
|
|
|
|
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
|
|
implementation(libs.guava)
|
|
implementation("com.github.h0tk3y.betterParse:better-parse:0.4.4")
|
|
}
|
|
|
|
// Apply a specific Java toolchain to ease working on different environments.
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
tasks.named<Test>("test") {
|
|
// Use JUnit Platform for unit tests.
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.withType<Test>{
|
|
this.testLogging {
|
|
events("passed", "skipped", "failed")
|
|
showStandardStreams = true
|
|
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
|
|
}
|
|
} |