-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
68 lines (55 loc) · 1.63 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
plugins {
id 'com.github.hierynomus.license' version '0.13.1'
id 'maven-publish'
id 'net.nemerosa.versioning' version '2.4.0'
id 'com.jfrog.bintray' version '1.8.4'
id 'com.github.ben-manes.versions' version '0.13.0'
id 'org.openjfx.javafxplugin' version '0.0.7'
}
// def osName = System.getProperty("os.name").toLowerCase()
// ext.platform = osName.contains("mac") ? 'mac' : osName.contains("windows") ? 'win' : osName;
apply plugin: 'java'
apply plugin: 'application'
apply from: 'gradle/publishing.gradle'
sourceCompatibility = '11'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
if (!hasProperty('mainClass')) {
ext.mainClass = 'eu.mihosoft.scaledfx.Main'
}
wrapper {
gradleVersion = '6.5'
}
description = 'JavaFX Region for scaling arbitrary content nodes.'
license {
header = rootProject.file('config/HEADER')
strictCheck = true
ignoreFailures = true
mapping {
java = 'SLASHSTAR_STYLE'
groovy = 'SLASHSTAR_STYLE'
fxml = 'XML_STYLE'
}
ext.year = '2016-'+new java.text.SimpleDateFormat("yyyy").format(new Date())
ext.author = 'Michael Hoffer <[email protected]>'
}
repositories {
jcenter()
}
dependencies {
testCompile "org.testfx:testfx-core:4.0.15-alpha"
testCompile 'org.testfx:testfx-junit:4.0.15-alpha'
}
// run {
// doFirst {
// jvmArgs += ["-Xmx12000m" ]
// }
// }
javafx {
modules = [ 'javafx.controls', /*TODO declare as test dependency only*/'javafx.fxml' ]
}
mainClassName = 'eu.mihosoft.scaledfx.Main'
jar {
manifest {
attributes('Automatic-Module-Name': 'eu.mihosoft.scaledfx')
}
}