forked from mockito/mockito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
osgi.gradle
39 lines (32 loc) · 1.45 KB
/
osgi.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
apply plugin: 'osgi'
/* TODO use Gradle osgi plugin at some point */
afterEvaluate {
tasks.matching { it.name == 'jar' }.all { jar ->
jar.manifest {
classpath = project.configurations.runtime
instruction '-versionpolicy', '[${version;==;${@}},${version;+;${@}})'
name = 'Mockito Mock Library for Java. Core bundle requires Hamcrest-core and Objenesis.'
symbolicName = 'org.mockito.mockito-core'
version = project.version
instruction 'Export-Package',
'!org.mockito.asm.*',
'!org.mockito.cglib.*',
'!org.mockito.internal.*',
'org.objenesis;version=2.1',
"org.mockito.*;version=${project.version}"
instruction 'Import-Package',
'!org.mockito.asm.signature',
'net.bytebuddy.*;version=0.2.1',
'junit.*;resolution:=optional',
'org.junit.*;resolution:=optional',
'org.apache.tools.ant.*;resolution:=optional',
'org.hamcrest;version="[1.0,2.0)"',
'org.objenesis;version="[2.1,3.0)"',
'org.mockito.asm.signature;resolution:=optional',
'org.mockito.*'
instruction 'Private-Package',
'org.mockito.*'
instruction '-removeheaders', 'Private-Package'
}
}
}