-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
52 lines (44 loc) · 1.45 KB
/
build.gradle.kts
File metadata and controls
52 lines (44 loc) · 1.45 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
plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.serialization) apply false
}
allprojects {
group = "io.github.codeyousef"
repositories {
mavenCentral()
gradlePluginPortal()
}
}
tasks.register("buildCore") {
dependsOn(":summon-core:build")
description = "Build core library only"
}
tasks.register("buildCli") {
dependsOn(":summon-cli:build")
description = "Build CLI tool only"
}
tasks.register("buildAll") {
dependsOn(":summon-core:build", ":summon-cli:build")
description = "Build all core modules"
}
tasks.register("publishLocal") {
dependsOn(":summon-core:publishToMavenLocal", ":summon-cli:publishToMavenLocal")
description = "Publish all publications to the local Maven repository"
}
tasks.register("buildCliExecutables") {
group = "build"
description = "Build CLI tool native executables and Shadow JAR"
dependsOn(":summon-cli:buildNativeExecutable", ":summon-cli:shadowJar")
doLast {
println("CLI tool executables built successfully!")
println("Shadow JAR: summon-cli/build/libs/")
println("Native executable: summon-cli/build/native/nativeCompile/")
println("Use these artifacts for GitHub Releases")
}
}
// Performance benchmarking tasks
tasks.register("benchmark") {
group = "benchmark"
description = "Run all JMH benchmarks (use ./gradlew :diagnostics:jmh)"
dependsOn(":diagnostics:jmh")
}