-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
50 lines (40 loc) · 1.18 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
import net.raphimc.javadowngrader.gradle.task.DowngradeSourceSetTask
plugins {
java
application
id("net.raphimc.java-downgrader") version "1.1.2-SNAPSHOT"
}
group = "io.github.gaming32"
version = "1.0.1"
repositories {
mavenCentral()
maven("https://jitpack.io") {
content {
includeGroupAndSubgroups("com.github")
}
}
}
dependencies {
implementation("com.tagtraum:ffsampledsp-complete:0.9.53")
implementation("net.java.dev.jna:jna-platform:5.14.0")
implementation("com.googlecode.lanterna:lanterna:3.1.2")
compileOnly("org.jetbrains:annotations:24.1.0")
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
application {
mainClass = "io.github.gaming32.stillalive.StillAlive"
}
val downgradeMain by tasks.registering(DowngradeSourceSetTask::class) {
sourceSet = sourceSets.main
dependsOn(tasks.classes)
}
tasks.classes.get().finalizedBy(downgradeMain)
tasks.jar {
manifest {
attributes["Main-Class"] = application.mainClass.get()
}
from(configurations.runtimeClasspath.get().files.map { if (it.isDirectory) it else zipTree(it) })
duplicatesStrategy = DuplicatesStrategy.WARN
}