build.gradle 1.75 KB
Newer Older
acoburn's avatar
acoburn committed
1
2
3
4
5
6
7
8
9
apply plugin: 'osgi'

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

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
10
11
    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
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    compile group: 'org.codehaus.woodstox', name: 'woodstox-core-asl', version: woodstoxVersion

    testCompile project(':acrepo-services-mint')
    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
acoburn's avatar
acoburn committed
28
        instruction 'Import-Package', "org.apache.camel,org.apache.camel.component.sql,javax.sql,${defaultOsgiImports}"
acoburn's avatar
acoburn committed
29
30
31
32
33
34
35
36
37
38
39
        instruction 'Export-Package', "edu.amherst.acdc.connector.idiomatic;version=${projectOsgiVersion}"
    }
}

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

40
41
42
test {
    systemProperty 'derby.stream.error.file', 'build/tmp/derby.log'
}