-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle.kts
67 lines (58 loc) · 1.41 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
// Apply the application plugin to add support for building an application in Java.
application
id("com.github.johnrengelman.shadow") version "7.1.2"
}
repositories {
flatDir {
dirs("lib")
}
}
dependencies {
implementation(":gson:2.2.4")
implementation(":ixbm:")
implementation(":jinput:")
implementation(":jnlp:")
implementation(":jogg:0.0.7")
implementation(":jorbis:0.0.15")
implementation(":lwjgl:")
implementation(":lwjgl:debug")
implementation(":lwjgl:util")
implementation(":nifty:1.1")
implementation(":nifty-default-controls:1.1")
implementation(":slick:")
implementation(":tinylinepp:")
implementation(":xpp3:1.1.4c:")
testImplementation(":junit:4.13.1")
testImplementation(":junit-benchmarks:0.7.0")
testImplementation(":hamcrest-core:1.3")
}
application {
// The main class for the application.
mainClass.set("xswing.start.XSwingWithOptions")
}
// Output to build/libs/XSwingPlus.jar
tasks.withType<ShadowJar> {
archiveClassifier.set("")
copy {
into("$buildDir/libs/")
with(copySpec {
from(".") {
include("res/**")
}
})
}
copy {
into("$buildDir/libs/")
with(copySpec {
from(".") {
include("*.dll")
include("*.so")
include("*.jnilib")
include("README.md")
include("config.json")
}
})
}
}