-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
113 lines (95 loc) · 3.33 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import java.text.SimpleDateFormat
plugins {
id 'org.openjfx.javafxplugin' version '0.0.9'
id 'com.github.hierynomus.license' version '0.15.0'
id 'net.nemerosa.versioning' version '2.8.2'
id 'com.jfrog.bintray' version '1.8.5'
id 'com.github.ben-manes.versions' version '0.28.0'
id "com.github.johnrengelman.shadow" version "6.0.0"
}
apply plugin: 'base'
Properties cfg = new Properties()
cfg.load(new FileInputStream("$rootDir/fxyz-build.properties"))
ext {
artifact_suffix = cfg.artifact_suffix
specification_title = cfg.fxyz_specification_title
specification_version = cfg.fxyz_specification_version
fxyz_name = 'FXyzLibs'
fxyz_sampler_name = 'FXyz-Sampler'
fxyz_sampler_version = cfg.fxyz_sampler_specification_version + artifact_suffix
fxyz_sampler_mainClass = 'org.fxyz3d.samples.Launcher'
fxyz_group = cfg.fxyz_group
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'org.openjfx.javafxplugin'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'com.github.hierynomus.license'
group = fxyz_group
version = specification_version + artifact_suffix
repositories {
jcenter()
maven {
url = "http://maven.jzy3d.org/releases"
}
}
dependencies {
implementation ('eu.mihosoft.vrl.jcsg:jcsg:0.5.7') { transitive = false }
implementation 'eu.mihosoft.vvecmath:vvecmath:0.4.0'
implementation 'org.orbisgis:poly2tri-core:0.1.2'
// A fork of JDT (Java Delaunay Triangulation) Core API from https://github.com/yonatang/JDT for Jzy3d
implementation 'org.jzy3d:jzy3d-jdt-core:1.0.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}
javafx {
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.swing' ]
}
eclipse {
classpath {
file {
whenMerged {
entries.findAll { it.kind == 'src' || it.kind == 'lib' }.each {
it.entryAttributes['module'] = 'true'
}
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '6.5'
}
task sourceJar(type: Jar) {
from sourceSets.main.java
from sourceSets.main.resources
classifier = 'sources'
}
artifacts {
archives sourceJar
}
license {
header = rootProject.file('fxyz-license.txt')
strictCheck = true
ignoreFailures = false
skipExistingHeaders = true
mapping {
java = 'SLASHSTAR_STYLE'
groovy = 'SLASHSTAR_STYLE'
fxml = 'XML_STYLE'
}
ext.title = 'F(X)yz'
ext.yearCurrent = new SimpleDateFormat("yyyy").format(new Date())
ext.yearSince = '2013'
excludes(['**/*.txt', '**/*.html', '**/*.fxml', '**/*.css', '**/*.obj', '**/*.mtl', '**/*.ma', '**/*.png', '**/*.gif', '**/*.jpg'])
}
test {
useJUnitPlatform()
testLogging {
events "failed"
exceptionFormat "full"
}
}
}