-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
54 lines (46 loc) · 1.37 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
import org.apache.tools.ant.taskdefs.condition.Os
plugins {
id 'application'
}
private static def javafxVersion() {
return '21';
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.openjfx', name: 'javafx-base', version: javafxVersion(), classifier: osClassifier()
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javafxVersion(), classifier: osClassifier()
implementation group: 'org.openjfx', name: 'javafx-controls', version: javafxVersion(), classifier: osClassifier()
implementation('io.github.jbock-java:parmigiano:1.02')
implementation('io.github.jbock-java:jbock:5.14')
annotationProcessor('io.github.jbock-java:jbock-compiler:5.14')
testImplementation('com.guicedee.services:commons-math3:62')
testImplementation('org.mockito:mockito-core:4.10.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.9.1')
}
application {
mainClass = 'uppu.S4Checker'
mainModule = 'uppufx'
}
configurations {
testCompile
}
test {
useJUnitPlatform()
testLogging {
events('failed')
}
}
private static def osClassifier() {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
return 'win'
}
if (Os.isFamily(Os.FAMILY_MAC)) {
return 'mac'
}
if (Os.isFamily(Os.FAMILY_UNIX)) {
return 'linux'
}
throw new IllegalStateException('unknown OS');
}