-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
40 lines (33 loc) · 1.02 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
plugins {
java
}
val basePackage = "it.poliba.sisinflab.owl"
val mainClass = "$basePackage.owltool.Main"
group = basePackage
version = "0.1.0"
repositories {
mavenCentral()
}
dependencies {
implementation("net.sourceforge.owlapi", "owlapi-distribution", "5.5.1")
implementation("org.jcommander", "jcommander", "2.0")
implementation("org.slf4j", "slf4j-nop", "2.0.16")
}
val fatJar = task("fatJar", type = Jar::class) {
group = BasePlugin.BUILD_GROUP
description = "Assembles a jar archive containing all classes, including those of dependencies."
duplicatesStrategy = DuplicatesStrategy.INCLUDE
manifest {
attributes["Implementation-Title"] = project.name
attributes["Implementation-Version"] = project.version
attributes["Main-Class"] = mainClass
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
with(tasks.jar.get() as CopySpec)
}
tasks.build {
dependsOn(fatJar)
}
tasks.wrapper {
gradleVersion = "8.10"
}