forked from bcgit/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (56 loc) · 1.13 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
if (JavaVersion.current().isJava8Compatible())
{
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
}
}
ext {
bcTestDataHome = file('core/src/test/data').absolutePath
}
task printProperties {
doLast {
println bcTestDataHome
}
}
subprojects {
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.66'
test {
systemProperty 'bc.test.data.home', bcTestDataHome
filter {
includeTestsMatching "AllTest*"
}
}
}
test.dependsOn([':core:test', ':prov:test', ':pkix:test', ':mail:test', 'pg:test', ':tls:test'])