-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
37 lines (30 loc) · 954 Bytes
/
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
apply plugin: 'com.athaydes.osgi-run'
allprojects {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
}
subprojects {
apply plugin: 'osgi'
apply plugin: 'com.athaydes.ipojo'
dependencies {
compile 'org.apache.felix:org.apache.felix.ipojo.annotations:1.12.1'
}
}
dependencies {
osgiRuntime( 'org.apache.cxf.dosgi:cxf-dosgi-ri-singlebundle-distribution:1.4.0' ) {
transitive = false
}
}
def clientConfig = project.hasProperty( 'client' )
def clientBundles = [ 'code-runner-api', 'code-runner-ui' ]
def serverBundles = [ 'code-runner-api', 'code-runner-server', 'groovy-2-3-3-runner', 'javascript-runner' ]
runOsgi {
bundles = IPOJO_ALL_BUNDLES + subprojects.findAll {
it.name in ( clientConfig ? clientBundles : serverBundles )
}
outDir = clientConfig ? 'client' : 'server'
config += [ 'org.osgi.framework.system.packages.extra': 'sun.reflect' ]
}