-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (44 loc) · 1.01 KB
/
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
45
46
47
48
49
50
51
52
53
54
plugins {
kotlin("jvm") version "1.9.0"
`maven-publish`
`jvm-test-suite`
}
group = "net.megavex"
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
api("io.ktor:ktor-network:2.3.2")
testImplementation(kotlin("test"))
}
@Suppress("UnstableApiUsage")
testing {
suites {
register<JvmTestSuite>("integrationTest") {
dependencies {
implementation(project())
}
}
}
}
@Suppress("UnstableApiUsage")
tasks.named("check") {
dependsOn(testing.suites.named("integrationTest"))
}
val integrationTestImplementation: Configuration by configurations.getting {
extendsFrom(configurations.testImplementation.get())
}
tasks.test {
useJUnitPlatform()
}
tasks.getByName<Test>("integrationTest") {
project.findProperty("redis.uri")?.let { systemProperty("redis.uri", it) }
}
kotlin {
explicitApi()
jvmToolchain(17)
}
publishing.publications.create<MavenPublication>("maven") {
from(components["java"])
}