-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
69 lines (58 loc) · 1.94 KB
/
build.gradle.kts
File metadata and controls
69 lines (58 loc) · 1.94 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import org.gradle.api.tasks.testing.logging.TestLogEvent.*
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
alias(libs.plugins.jetbrains.kotlin.jvm)
application
alias(libs.plugins.github.johnrengelman.shadow)
}
group = "com.dev4ever"
version = "1.0.0-SNAPSHOT"
repositories {
mavenCentral()
}
//val mainVerticleName = "com.dev4ever.plfarm.PLFram"
//val launcherClassName = "io.vertx.core.Launcher"
val watchForChange = "src/**/*"
val doOnChange = "${projectDir}/gradlew classes"
//application {
// mainClass.set(launcherClassName)
//}
dependencies {
implementation(platform(libs.io.vertx.stack.depchain))
implementation(libs.io.vertx.config)
implementation(libs.io.vertx.camel.bridge)
implementation(libs.io.vertx.circuit.breaker)
implementation(libs.io.vertx.junit5)
implementation(libs.io.vertx.lang.kotlin)
implementation(libs.io.vertx.lang.kotlin.coroutines)
implementation(libs.io.vertx.pg.client)
implementation(libs.io.vertx.service.discovery)
implementation(libs.io.vertx.web)
implementation(libs.io.vertx.web.client)
implementation(libs.kotlin.stdlib)
implementation(libs.org.postgresql)
implementation(libs.ongres.scram.client)
// Testing
testImplementation(libs.jetbrains.coroutines.test)
testImplementation(libs.junit.jupiter)
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.compilerOptions.jvmTarget = JvmTarget.JVM_21
//tasks.withType<ShadowJar> {
// archiveClassifier.set("fat")
// manifest {
// attributes(mapOf("Main-Verticle" to mainVerticleName))
// }
// mergeServiceFiles()
//}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events = setOf(PASSED, SKIPPED, FAILED)
}
}
//tasks.withType<JavaExec> {
// args = listOf("run", mainVerticleName, "--redeploy=$watchForChange", "--launcher-class=$launcherClassName", "--on-redeploy=$doOnChange")
//}