build.gradle 1.19 KB
Newer Older
acoburn's avatar
acoburn committed
1
2
3
apply plugin: 'osgi'

description = 'Message Broadcaster'
4
5
6
7
8

ext {
    moduleName = 'edu.amherst.acdc.connector.broadcast'
}

acoburn's avatar
acoburn committed
9
10
11
dependencies {
    compile group: 'org.apache.camel', name: 'camel-core', version: camelVersion
    compile group: 'org.apache.camel', name: 'camel-blueprint', version: camelVersion
12

acoburn's avatar
acoburn committed
13
    testCompile group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
14
15
16
    testCompile group: 'javax.activation', name: 'javax.activation-api', version: activationApiVersion
    testCompile group: 'javax.xml.bind', name: 'jaxb-api', version: jaxbVersion
    testCompile group: 'org.apache.camel', name: 'camel-test-blueprint', version: camelVersion
acoburn's avatar
acoburn committed
17
18
19
20
21
22
23
24
25
}

jar {
    manifest {
        description project.description
        docURL project.docURL
        vendor project.vendor
        license project.license

26
        instruction 'Automatic-Module-Name', moduleName
acoburn's avatar
acoburn committed
27
        instruction 'Import-Package', "org.apache.camel,${defaultOsgiImports}"
28
        instruction 'Export-Package', "${moduleName};version=${projectOsgiVersion}"
acoburn's avatar
acoburn committed
29
30
31
32
33
34
35
36
37
    }
}

artifacts {
    archives (file('build/cfg/main/edu.amherst.acdc.connector.broadcast.cfg')) {
        classifier 'configuration'
        type 'cfg'
    }
}