forked from bcgit/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
122 lines (95 loc) · 2.24 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
114
115
116
117
118
119
120
121
122
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
plugins {
id "io.spring.nohttp" version "0.0.8"
id "checkstyle"
id "jacoco"
}
if (JavaVersion.current().isJava8Compatible())
{
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
// this needs to go here, otherwise it can't find config
apply plugin: 'io.spring.nohttp'
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.11'
}
}
ext {
bcTestDataHome = file('core/src/test/data').absolutePath
}
task printProperties {
doLast {
println bcTestDataHome
}
}
subprojects {
apply plugin: 'eclipse'
JavaVersion current = JavaVersion.current();
if (current.compareTo(JavaVersion.VERSION_1_8) <= 0)
{
ext.vmrange = 'jdk15to18'
sourceCompatibility = 1.5
targetCompatibility = 1.5
}
else
{
ext.vmrange = 'jdk18on'
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
version = '1.70'
task testFull(type:Test) {
systemProperties = [
'bc.test.data.home': bcTestDataHome,
'test.full':'true'
]
systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
finalizedBy jacocoTestReport
filter {
includeTestsMatching "AllTest*"
}
}
test {
systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
finalizedBy jacocoTestReport
filter {
includeTestsMatching "AllTest*"
}
}
dependencies {
checkstyle files("$rootDir/config/checkstyle/lib/methodchecker.jar")
checkstyle 'com.puppycrawl.tools:checkstyle:9.0'
}
checkstyle {
configFile file("$rootDir/config/checkstyle/checkstyle.xml");
toolVersion '9.0'; // your choice here
sourceSets = [project.sourceSets.main]
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
jacoco {
reportsDirectory = layout.buildDirectory.dir("jacoco")
}
}
test.dependsOn([':core:test', ':prov:test', ':pkix:test', ':mail:test', 'pg:test', ':tls:test'])