-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathbuild.gradle.kts
41 lines (34 loc) · 1.03 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
plugins {
java
application
}
group = "io.github.cosinekitty.astronomy.demo"
version = "1.0.0"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
repositories {
mavenCentral()
// maven("https://jitpack.io")
}
dependencies {
implementation(fileTree("../../source/kotlin/build/libs"))
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.20") // Not needed if resolved from jitpack
// In an independent project resolve it from jitpack like,
// implementation("com.github.cosinekitty:astronomy:x.y.z")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
application {
mainClass.set("io.github.cosinekitty.astronomy.demo.Main")
}
tasks.jar {
manifest.attributes["Main-Class"] = "io.github.cosinekitty.astronomy.demo.Main"
from(configurations.runtimeClasspath.get().map(::zipTree))
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}