forked from ehcache/ehcache3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
83 lines (75 loc) · 3.06 KB
/
build.gradle
File metadata and controls
83 lines (75 loc) · 3.06 KB
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
/*
* Copyright Terracotta, Inc.
* Copyright IBM Corp. 2024, 2025
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'org.ehcache.build.conventions.java'
}
configurations {
serverLibs
}
dependencies {
testImplementation project(':clustered:ehcache-client')
testImplementation project(':clustered:ehcache-common')
testImplementation project(':ehcache-impl')
testImplementation project(':ehcache-xml')
testImplementation project(':ehcache-107')
testImplementation "org.terracotta.internal:client-runtime:$terracottaCoreVersion"
testImplementation "org.terracotta:runnel:$terracottaPlatformVersion"
testImplementation "org.terracotta:lease-api:$terracottaPlatformVersion"
testImplementation("javax.cache:cache-tests:$jcacheTckVersion") {
exclude group:'junit', module:'junit'
}
testImplementation("javax.cache:cache-tests:$jcacheTckVersion:tests") {
exclude group:'junit', module:'junit'
}
testImplementation project(':ehcache-management')
testImplementation "org.terracotta.management:nms-entity-client:$terracottaPlatformVersion"
testImplementation "org.terracotta.management:nms-agent-entity-client:$terracottaPlatformVersion"
testImplementation "org.terracotta:terracotta-utilities-port-chooser:$terracottaUtilitiesVersion"
testImplementation("org.terracotta:galvan-platform-support:$terracottaPlatformVersion") {
exclude group: 'org.terracotta', module: 'terracotta-utilities-port-chooser'
}
testImplementation "javax.cache:cache-api:$jcacheVersion"
}
task unzipKit(type: Sync) {
dependsOn project(':clustered:ehcache-clustered').distZip
from zipTree(project(':clustered:ehcache-clustered').distZip.archivePath)
into 'build/ehcache-kit'
}
task copyServerLibs(type: Sync) {
dependsOn unzipKit
from project.configurations.serverLibs
into "$unzipKit.destinationDir/${project(':clustered:ehcache-clustered').archivesBaseName}-$project.version-kit/server/plugins/lib"
}
test {
maxHeapSize = '512m'
maxParallelForks = 8
dependsOn copyServerLibs
environment 'JAVA_HOME', testJava.javaHome
//If this directory does not exist, tests will fail with a cryptic assert failure
systemProperty 'kitInstallationPath', "$unzipKit.destinationDir/${project(':clustered:ehcache-clustered').archivesBaseName}-$project.version-kit"
// Uncomment to include client logging in console output
// testLogging.showStandardStreams = true
}
configurations.all {
resolutionStrategy {
dependencySubstitution {
substitute(module('junit:junit:4.12'))
.because('CVE-2020-15250')
.using(module('junit:junit:4.13.1'))
}
}
}