-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
70 lines (56 loc) · 1.38 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.20"
id("org.jlleitschuh.gradle.ktlint") version "12.1.0"
id("com.gradleup.shadow") version "8.3.0"
application
}
group = "eu.iamgio.quarkdown"
version = "1.0-SNAPSHOT"
allprojects {
repositories {
mavenCentral()
}
}
dependencies {
subprojects.forEach {
implementation(it)
}
}
application {
mainClass.set("eu.iamgio.quarkdown.cli.QuarkdownCliKt")
}
tasks.build {
dependsOn("shadowJar")
}
tasks.jar {
enabled = false // The jar is generated by shadowJar
}
tasks.test {
useJUnitPlatform()
}
tasks.distZip {
archiveVersion.set("")
// The module 'libs' contains .qmd library files that are saved in the lib/qmd directory of the distribution zip.
val librariesModule = project(":libs")
into("${archiveBaseName.get()}/lib/qmd") {
from(librariesModule.file("src/main/resources")) {
include("*.qmd")
}
}
}
tasks.wrapper {
gradleVersion = "8.3"
distributionType = Wrapper.DistributionType.ALL
}
tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
}
}
tasks.withType<ShadowJar> {
archiveVersion.set("")
archiveClassifier.set("")
}