-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (45 loc) · 1.58 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
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
}
group = 'com.ttl.alu'
version = '1.0'
description = 'TTL74181 is a 4-bit ALU emulator based on the original architecture design made by Fairchild Semiconductor'
// The allowed values are: [ "win", "mac", "linux" ]
def targetPlatform = "win"
archivesBaseName = "TTL74181-$targetPlatform"
mainClassName = 'com.ttl.alu.Main'
sourceCompatibility = '11'
targetCompatibility = '11'
javafx {
version = '11'
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.openjfx:javafx-base:$javafx.version:$targetPlatform"
implementation "org.openjfx:javafx-graphics:$javafx.version:$targetPlatform"
implementation "org.openjfx:javafx-controls:$javafx.version:$targetPlatform"
implementation "org.openjfx:javafx-fxml:$javafx.version:$targetPlatform"
implementation "org.openjfx:javafx-web:$javafx.version:$targetPlatform"
runtimeOnly "org.openjfx:javafx-controls:$javafx.version:$targetPlatform"
runtimeOnly "org.openjfx:javafx-fxml:$javafx.version:$targetPlatform"
runtimeOnly "org.openjfx:javafx-web:$javafx.version:$targetPlatform"
runtimeOnly "org.openjfx:javafx-media:$javafx.version:$targetPlatform"
}
jar {
manifest {
attributes(
'Main-Class': mainClassName,
'Created-By': 'Giuseppe Baittiner'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}