-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (38 loc) · 1.23 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
plugins {
application
id("com.gradleup.shadow")
}
/** Specify the entrypoint for the application. */
application { mainClass.set("technology.idlab.rdfc.cli.MainKt") }
/** The target JDK. */
val jdkVersion: String by project
kotlin { jvmToolchain(jdkVersion.toInt()) }
dependencies {
// Local dependencies
implementation(project(":rdfc-core"))
implementation(project(":rdfc-orchestrator"))
implementation(project(":rdfc-parser"))
implementation(project(":rdfc-intermediate"))
// Kotlin extensions.
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
// KTest.
testImplementation(kotlin("test"))
}
tasks.named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
// Name of the resulting archive.
archiveFileName.set("rdfc.jar")
// Make sure to include dependencies from other modules.
configurations = listOf(project.configurations.runtimeClasspath.get())
// Specify merge strategies if needed to handle duplicate files.
mergeServiceFiles()
}
publishing {
publications {
create<MavenPublication>("gpr") {
from(components["java"])
groupId = "technology.idlab"
artifactId = "rdfc-cli"
version = project.ext["projectVersion"] as String
}
}
}