-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
44 lines (35 loc) · 903 Bytes
/
build.gradle.kts
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
plugins {
kotlin("jvm") version "1.4.21"
`maven-publish`
}
group = "me.yujinyan"
version = "0.0.1"
kotlin {
explicitApi()
}
repositories {
mavenCentral()
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xallow-kotlin-package")
jvmTarget = "1.8"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
dependencies {
implementation(kotlin("stdlib"))
implementation("org.jeasy:easy-random-core:4.1.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1")
testImplementation("io.kotest:kotest-assertions-core:4.3.0") // for kotest core jvm assertions
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.1")
}