-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (58 loc) · 1.41 KB
/
build.gradle
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
67
68
69
70
71
72
73
import com.sun.tools.javac.Main
plugins {
id 'java-library'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'jacoco'
}
javafx {
version = "19.0.2.1"
modules = ['javafx.controls', 'javafx.fxml', 'javafx.base', 'javafx.media']
}
group ''
version '0.1'
mainClassName = 'Main'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
// LOG4J
implementation 'org.apache.logging.log4j:log4j-api:2.+'
implementation 'org.apache.logging.log4j:log4j-core:2.+'
// JAVAFX
implementation 'org.openjfx:javafx-controls:19.0.2.1'
// Controller Support
implementation 'com.github.WilliamAHartman:Jamepad:1.3.2'
implementation 'uk.co.electronstudio.sdl2gdx:sdl2gdx:1.0.4'
// JUNIT
testImplementation("org.junit.jupiter:junit-jupiter:5.+")
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes(
'Main-Class': 'Main'
)
}
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy(DuplicatesStrategy.INCLUDE)
}
javadoc {
options.encoding = "UTF-8"
}
tasks.register('build-cs108') {
dependsOn(jar)
dependsOn(javadoc)
}