-
Notifications
You must be signed in to change notification settings - Fork 590
Expand file tree
/
Copy pathbuild.gradle
More file actions
85 lines (73 loc) · 2.62 KB
/
build.gradle
File metadata and controls
85 lines (73 loc) · 2.62 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
84
85
/*
* Copyright Terracotta, Inc.
*
* 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.internal-module'
}
publishing.publications.withType(MavenPublication) {
pom {
name = 'Ehcache 3 Implementation module'
description = 'The implementation module of Ehcache 3'
}
}
sourceSets {
unsafe
}
sourceSets {
slowTest {
java.srcDir 'src/slow-test/java'
resources.srcDir 'src/slow-test/resources'
compileClasspath += sourceSets.test.compileClasspath
runtimeClasspath += sourceSets.test.runtimeClasspath
}
}
task slowTest(type: Test) {
testClassesDirs = sourceSets.slowTest.output.classesDirs
classpath += sourceSets.slowTest.runtimeClasspath
binaryResultsDirectory = file("$buildDir/slow-tests-results/binary/$name")
reports.junitXml.destination = file("$buildDir/slow-tests-results")
reports.html.destination = file("$buildDir/reports/slow-tests")
}
dependencies {
api project(':ehcache-core')
implementation group: 'org.terracotta', name: 'offheap-store', version: parent.offheapVersion
implementation group: 'org.ehcache', name: 'sizeof', version: parent.sizeofVersion
implementation group: 'org.terracotta', name: 'terracotta-utilities-tools', version: parent.terracottaUtilitiesVersion
compileOnly 'org.osgi:org.osgi.service.component.annotations:1.3.0'
testImplementation project(':core-spi-test')
testImplementation 'org.ow2.asm:asm:6.2'
testImplementation 'org.ow2.asm:asm-commons:6.2'
testImplementation ("org.terracotta:statistics:$parent.statisticVersion")
unsafeImplementation project(':ehcache-api')
api files(sourceSets.unsafe.output.classesDirs) {
builtBy compileUnsafeJava
}
}
jar {
from sourceSets.unsafe.output
from "$rootDir/NOTICE"
bnd (
'Export-Package': '!org.ehcache.impl.internal.*, org.ehcache.impl.*, org.ehcache.config.builders, ' +
'org.ehcache.impl.internal.spi.loaderwriter', //ugly 107 induced internal export wart
'Import-Package': '!sun.misc, !javax.annotation, *',
)
}
sourcesJar {
from sourceSets.unsafe.allSource
}
compileUnsafeJava {
//no -Werror due to unsafe
options.compilerArgs = ['-Xlint:all']
}