-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
53 lines (43 loc) · 1.39 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
53 lines (43 loc) · 1.39 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
53
plugins {
java
kotlin("jvm") version "1.9.22"
kotlin("plugin.serialization") version "1.9.22"
}
group = "io.github.mochaapi"
version = "1.0.0"
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
// JSON Processing
implementation("com.fasterxml.jackson.core:jackson-databind:2.17.2")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.2")
// Logging (optional, compile-only for API compatibility)
compileOnly("org.slf4j:slf4j-api:2.0.9")
// Testing
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.0")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.11.0")
testImplementation("org.mockito:mockito-core:5.8.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.8.0")
testImplementation("org.slf4j:slf4j-simple:2.0.9")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
// =============================================================================
// JAVADOC CONFIGURATION (Fix for Java 21)
// =============================================================================
tasks.javadoc {
if (JavaVersion.current().isJava9Compatible) {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
}