-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathbuild.gradle.kts
39 lines (33 loc) · 1022 Bytes
/
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
import com.needhamsoftware.unojar.gradle.PackageUnoJarTask
plugins {
id("java-library")
id("com.needhamsoftware.unojar") version "1.1.0"
}
group = "com.skadistats"
version = "3.1-SNAPSHOT"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
repositories {
mavenCentral()
}
dependencies {
api("com.skadistats:clarity:3.1.1")
api("ch.qos.logback:logback-classic:1.4.14")
annotationProcessor("org.atteo.classindex:classindex:3.13")
}
File("src/main/java/skadistats/clarity/examples").walk().maxDepth(1).forEach {
tasks.register<JavaExec>("${it.name}Run") {
classpath = sourceSets.main.get().runtimeClasspath
mainClass.set("skadistats.clarity.examples.${it.name}.Main")
}
tasks.register<PackageUnoJarTask>("${it.name}Package") {
dependsOn("jar")
archiveBaseName.set(it.name)
archiveVersion.set("")
archiveClassifier.set("")
mainClass.set("skadistats.clarity.examples.${it.name}.Main")
}
}