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

description = 'ORE Object builder'
4
5
6
7
8

ext {
    moduleName = 'edu.amherst.acdc.exts.org'
}

acoburn's avatar
acoburn committed
9
10
11
12
13
14
dependencies {
    compile group: 'org.apache.camel', name: 'camel-core', version: camelVersion
    compile group: 'org.apache.camel', name: 'camel-blueprint', version: camelVersion
    compile group: 'org.apache.camel', name: 'camel-jetty9', version: camelVersion
    compile group: 'org.apache.jena', name: 'jena-osgi', version: jenaVersion
    compile project(':acrepo-services-ore')
15

16
17
    testCompile group: 'javax.activation', name: 'javax.activation-api', version: activationApiVersion
    testCompile group: 'javax.xml.bind', name: 'jaxb-api', version: jaxbVersion
acoburn's avatar
acoburn committed
18
19
    testCompile group: 'junit', name: 'junit', version: junitVersion
    testCompile group: 'org.apache.camel', name: 'camel-test-blueprint', version: camelVersion
20
    testCompile group: 'org.apache.commons', name: 'commons-compress', version: commonsCompressVersion
acoburn's avatar
acoburn committed
21
22
23
24
25
26
27
28
29
30
    testCompile group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
}

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

31
        instruction 'Automatic-Module-Name', moduleName
32
        instruction 'Import-Package', "org.apache.camel,edu.amherst.acdc.services.ore,${defaultOsgiImports}"
33
        instruction 'Export-Package', "${moduleName};version=${projectOsgiVersion}"
acoburn's avatar
acoburn committed
34
35
36
37
38
39
40
41
42
    }
}

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