-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (58 loc) · 1.76 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
69
70
71
72
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath "com.athaydes.gradle.osgi:osgi-run-core:1.5.0"
}
}
apply plugin: 'com.athaydes.osgi-run'
apply plugin: 'idea'
allprojects {
group = 'lk.egreen.msa.studio'
version = '1.0-SNAPSHOT'
repositories {
jcenter()
maven { url "https://maven.java.net/content/repositories/snapshots" }
maven { url "http://repo.maven.apache.org/maven2" }
}
}
repositories {
maven {
url 'http://www.knopflerfish.org/maven2'
}
}
dependencies {
// OSGi framework services
osgiRuntime 'org.apache.felix:org.apache.felix.scr:2.0.2'
osgiRuntime 'org.apache.felix:org.apache.felix.log:1.0.1', {
exclude group: '*'
}
// enable slf4j support
// osgiRuntime 'org.slf4j:osgi-over-slf4j:1.7.21'
// osgiRuntime 'org.slf4j:slf4j-api:1.7.21'
osgiRuntime 'org.codehaus.groovy:groovy-all:2.4.5'
// OBR CLI commands
osgiRuntime 'org.apache.felix:org.apache.felix.bundlerepository:2.0.6', {
exclude group: '*'
}
// OSGi container
osgiMain "org.apache.felix:org.apache.felix.main:5.4.0"
}
runOsgi {
bundles =
// uncomment to include the Knopflerfish GUI
// ['org.knopflerfish.bundle:desktop:5.0.1'] +
subprojects
copyManifestTo 'generated-sources/MANIFEST.MF'
// required by Groovy
config += ['org.osgi.framework.system.packages.extra': 'sun.reflect,jdk.nashorn.api.scripting']
// no OSGi framework bundles should be deployed
excludedBundles = [/osgi\..*/, /animal-sniffer.*/]
wrapInstructions {
manifest(/commons-logging.*/) {
instruction 'Import-Package', '!javax.servlet,!org.apache.*,*'
}
}
}