-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
66 lines (54 loc) · 1.53 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
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.9'
id 'org.beryx.runtime' version '1.12.2'
}
sourceCompatibility = 11
targetCompatibility = 11
description = 'Source code similarity detector'
group = 'ee.ut.similaritydetector'
version = '2.0.0'
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
mainClassName = 'ee.ut.similaritydetector.ui.App'
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation 'org.python:jython-standalone:2.7.2'
/* Pygments version 2.5.2 is the last version that supports Python 2,
* so it's the last version compatible with Jython,
* because the latter doesn't support Python 3 (yet?) */
implementation 'org.pygments:pygments:2.5.2'
}
javafx {
version = '11.0.2'
modules = ['javafx.base', 'javafx.controls', 'javafx.fxml', 'javafx.web', 'javafx.graphics', 'javafx.media']
}
jar {
manifest {
attributes 'Main-Class': mainClassName
}
}
runtime {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
modules
launcher {
noConsole = true
mainClassName = 'ee.ut.similaritydetector.ui.App'
}
jpackage {
installerOptions += ['--resource-dir', "src/main/resources"]
installerOptions += ['--win-per-user-install', '--win-dir-chooser', '--win-menu', '--win-shortcut']
}
}
tasks.runtime.doLast {
copy {
from("src/main/resources")
into("$buildDir/image/bin")
}
}