-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
52 lines (41 loc) · 1.35 KB
/
build.gradle.kts
File metadata and controls
52 lines (41 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Kotlin application project to get you started.
*/
plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin.
kotlin("jvm") version "2.2.20"
// Apply the application plugin to add support for building a CLI application.
application
}
repositories {
maven("https://jitpack.io")
mavenCentral()
}
dependencies {
// Kotlin
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("com.github.ptnplanet:Java-Naive-Bayes-Classifier:1.0.7")
implementation("com.github.ajalt.clikt:clikt:5.0.3")
testImplementation("org.assertj:assertj-core:3.27.6")
testImplementation("org.junit.jupiter:junit-jupiter-api:6.0.0")
testImplementation("org.junit.jupiter:junit-jupiter-params:6.0.0")
testImplementation("io.mockk:mockk:1.14.6")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
application {
// Define the main class for the application.
mainClass.set("com.github.hannotify.classyfire.ClassyFireKt")
}
tasks.withType<KotlinCompile> {
compilerOptions.jvmTarget.set(JvmTarget.JVM_21)
}
kotlin {
jvmToolchain(21)
}
tasks.withType<Test> {
useJUnitPlatform()
}