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

description = 'Camel-based service for mapping public IDs to Fedora IDs'

5
6
7
8
ext {
    moduleName = 'edu.amherst.acdc.connector.idiomatic'
}

acoburn's avatar
acoburn committed
9
10
11
12
13
dependencies {
    compile group: 'org.apache.camel', name: 'camel-core', version: camelVersion
    compile group: 'org.apache.camel', name: 'camel-sql', version: camelVersion
    compile group: 'org.apache.camel', name: 'camel-jetty9', version: camelVersion
    compile group: 'org.apache.camel', name: 'camel-blueprint', version: camelVersion
14
15
    compile group: 'org.apache.camel', name: 'camel-jackson', version: camelVersion
    compile group: 'org.apache.camel', name: 'camel-http4', version: camelVersion
acoburn's avatar
acoburn committed
16
17
18
    compile group: 'org.codehaus.woodstox', name: 'woodstox-core-asl', version: woodstoxVersion

    testCompile project(':acrepo-services-mint')
19
20
    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
21
22
23
24
25
26
27
28
29
30
31
32
33
    testCompile group: 'junit', name: 'junit', version: junitVersion
    testCompile group: 'org.apache.derby', name: 'derby', version: derbyVersion
    testCompile group: 'org.apache.camel', name: 'camel-test-blueprint', version: camelVersion
    testCompile group: 'commons-io', name: 'commons-io', version: commonsIoVersion
    testCompile group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
}

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

        instruction 'Automatic-Module-Name', moduleName
acoburn's avatar
acoburn committed
36
        instruction 'Import-Package', "org.apache.camel,org.apache.camel.component.sql,javax.sql,${defaultOsgiImports}"
37
        instruction 'Export-Package', "${moduleName};version=${projectOsgiVersion}"
acoburn's avatar
acoburn committed
38
39
40
41
42
43
44
45
46
47
    }
}

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

48
49
50
test {
    systemProperty 'derby.stream.error.file', 'build/tmp/derby.log'
}