-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (52 loc) · 1.66 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
import java.text.SimpleDateFormat
buildscript {
ext.commonProps = new Properties()
file(new File(project.rootProject.projectDir,"config/common.properties")).withInputStream { commonProps.load(it) }
}
plugins {
// id 'my-plugin' apply false
id 'com.github.hierynomus.license' version '0.16.1' apply false
}
allprojects {
repositories {
maven { url 'https://jitpack.io' }
mavenCentral()
mavenLocal()
}
apply plugin: 'java'
apply plugin: 'com.github.hierynomus.license'
sourceCompatibility = 17
targetCompatibility = 17
[compileJava, compileTestJava]*.options*.release = 17
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.encoding = 'UTF-8'
}
// compileTestJava.options.compilerArgs.add("--enable-preview")
// compileTestJava.options.compilerArgs.add("-Xlint:preview")
test {
// jvmArgs=['--enable-preview']
failFast = false
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
license {
header = rootProject.file('config/HEADER')
strictCheck = true
ignoreFailures = true
mapping {
java = 'SLASHSTAR_STYLE'
groovy = 'SLASHSTAR_STYLE'
fxml = 'XML_STYLE'
}
ext.yearCurrent = new SimpleDateFormat("yyyy").format(new Date())
ext.yearSince1 = '2019'
ext.author1 = 'Michael Hoffer <info@michaelhoffer.de>'
exclude '**/*.svg'
}
}
wrapper {
gradleVersion = '7.6.3'
}