-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (42 loc) · 1.2 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.dm.gradle:gradle-bundle-plugin:0.10.0"
}
}
group 'be.kestro.smarthome'
subprojects{
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'org.dm.bundle'
group 'be.kestro.smarthome'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'org.osgi:org.osgi.core:6.+'
compile 'org.osgi:org.osgi.service.component.annotations:1.3.0'
compile 'org.osgi:org.osgi.service.metatype.annotations:1.3.0'
}
bundle {
instructions << [
'Bundle-Vendor': 'Kestro',
'Export-Package': 'be.kestro.**.api,be.kestro.**.api.**'
]
}
task deployBundleToKaraf(type: Copy) {
dependsOn 'jar'
from jar.outputs
into "$System.env.HOME" + "/bin/apache-karaf-4.1.1/deploy/"
inputs.file jar.outputs
outputs.file "$System.env.HOME" + "/bin/apache-karaf-4.1.1/deploy/" + jar.archiveName
}
}