-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
60 lines (51 loc) · 1.25 KB
/
Copy pathbuild.gradle
File metadata and controls
60 lines (51 loc) · 1.25 KB
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
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.1.0'
id 'com.gradleup.shadow' version '8.3.6'
}
ext {
javafxVersion = '21.0.5'
javafxModules = ['base', 'controls', 'fxml', 'graphics']
platforms = ['win', 'linux', 'mac']
}
group = 'agh.ics.darwin'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
implementation 'com.opencsv:opencsv:5.7.1'
implementation 'io.github.mkpaz:atlantafx-base:2.0.1'
javafxModules.each { module ->
platforms.each { platform ->
implementation "org.openjfx:javafx-${module}:${javafxVersion}:${platform}"
}
}
}
test {
useJUnitPlatform()
}
application {
getMainClass().set('agh.ics.darwin.Launcher')
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
shadowJar {
archiveBaseName.set('Darwin World')
archiveVersion.set('1.0')
archiveClassifier.set('')
manifest {
attributes 'Main-Class': 'agh.ics.darwin.Launcher'
}
mergeServiceFiles()
from(sourceSets.main.resources) {
include 'presets/**'
into ''
}
}