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

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

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

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
    compile group: 'org.apache.camel', name: 'camel-http4', version: camelVersion
acoburn's avatar
acoburn committed
13
14
    compile group: 'org.apache.camel', name: 'camel-jetty9', version: camelVersion
    compile group: 'org.apache.jena', name: 'jena-osgi', version: jenaVersion
15

acoburn's avatar
acoburn committed
16
    compile project(':acrepo-services-pcdm')
17

18
19
    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
20
21
    testCompile group: 'junit', name: 'junit', version: junitVersion
    testCompile group: 'org.apache.camel', name: 'camel-test-blueprint', version: camelVersion
22
    testCompile group: 'org.apache.commons', name: 'commons-compress', version: commonsCompressVersion
acoburn's avatar
acoburn committed
23
24
25
26
27
28
29
30
31
32
    testCompile group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
}

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

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

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