-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (68 loc) · 1.89 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
73
74
75
buildscript {
ext.kotlin_version = '1.1.2-5'
ext.tornadofx_version = '1.7.8-SNAPSHOT'
dependencies {
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
plugins {
// id "org.dm.bundle" version "0.10.0"
id "com.athaydes.osgi-run" version "1.5.4"
id "org.jetbrains.kotlin.jvm" version "1.1.2"
}
group = 'net.kirkstork.examples'
version = '1.0-SNAPSHOT'
description = "tornadofx-osgi"
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {url "http://repo.maven.apache.org/maven2"}
}
subprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
configurations {
provided {
dependencies.all {dep ->
configurations.default.exclude group: dep.group, module: dep.name
}
}
compile.extendsFrom provided
}
}
dependencies {
osgiRuntime("no.tornado:tornadofx:$tornadofx_version") {
exclude group: "org.jetbrains.kotlin"
}
osgiRuntime "org.jetbrains.kotlin:kotlin-osgi-bundle:$kotlin_version"
osgiRuntime 'org.apache.felix:org.apache.felix.scr:2.0.10', {transitive = false}
osgiRuntime 'no.tornado:javafx-osgi:8.0.1'
osgiRuntime 'org.apache.httpcomponents:httpcore-osgi:4.4.6'
osgiRuntime 'org.apache.httpcomponents:httpclient-osgi:4.5.3'
osgiRuntime 'org.apache.felix:org.apache.felix.configadmin:1.8.14'
osgiRuntime 'org.glassfish:javax.json:1.0.4'
}
runOsgi {
bundles += subprojects
config += [
'org.osgi.framework.storage.clean' : 'true',
'org.osgi.framework.system.packages.extra': 'javafx,tornadofx.osgi,com.sun.deploy.uitoolkit.impl.fx,com.sun.deploy.uitoolkit.impl.fx.ui'
]
wrapInstructions {
manifest(/commons-logging.*/) {
instruction 'Import-Package', '!javax.servlet,!org.apache.*,*'
}
manifest(/httpclient-cache.*/) {
instruction 'Import-Package', '!net.sf.*,!org.slf4j.*,!net.spy.memcached,*'
}
}
}