forked from FXyz/FXyz
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
112 lines (96 loc) · 3.19 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
import java.text.SimpleDateFormat
plugins {
id 'base'
id 'net.nemerosa.versioning' version '3.0.0'
id 'com.github.ben-manes.versions' version '0.47.0'
id 'io.codearte.nexus-staging' version '0.30.0'
id 'org.openjfx.javafxplugin' version '0.1.0' apply false
id 'org.javamodularity.moduleplugin' version '1.8.12' apply false
id 'com.github.hierynomus.license' version '0.16.1' apply false
id 'de.marcphilipp.nexus-publish' version '0.4.0' apply false
}
ext {
fxyz_sampler_mainClass = 'org.fxyz3d.samples.Launcher'
gradleWrapperVersion = '8.3'
}
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.openjfx.javafxplugin'
apply plugin: 'org.javamodularity.moduleplugin'
apply plugin: 'com.github.hierynomus.license'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
modularity.inferModulePath.set(false)
}
if (project.name != 'FXyz-Samples') {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply from: "$rootDir/gradle/publishing.gradle"
} else {
javadoc {
enabled(false)
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.9.2'
testImplementation 'org.hamcrest:hamcrest:2.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
}
javafx {
version = javafx_version
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.swing' ]
}
javadoc {
options.addBooleanOption("Xdoclint:none").setValue(true)
options.addBooleanOption("javafx").setValue(true)
}
eclipse {
classpath {
file {
whenMerged {
entries.findAll { it.kind == 'src' || it.kind == 'lib' }.each {
it.entryAttributes['module'] = 'true'
}
}
}
}
}
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"
}
}
}
nexusStaging {
username = project.hasProperty('sonatypeUsername') ? project.property('sonatypeUsername') : ''
password = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : ''
numberOfRetries = 30
delayBetweenRetriesInMillis = 10000
}
wrapper {
gradleVersion = gradleWrapperVersion
distributionType = Wrapper.DistributionType.BIN
}