build.gradle 2.46 KB
Newer Older
acoburn's avatar
acoburn committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apply plugin: 'osgi'

description = 'LDPath service'
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.camel', name: 'camel-http4', version: camelVersion
    compile group: 'org.apache.camel', name: 'camel-jackson', version: camelVersion
    compile group: 'org.apache.marmotta', name: 'ldcache-api', version: marmottaVersion
    compile group: 'org.apache.marmotta', name: 'ldpath-core', version: marmottaVersion
    compile group: 'org.apache.marmotta', name: 'ldclient-provider-rdf', version: marmottaVersion
    compile group: 'org.apache.httpcomponents', name:  'httpclient-osgi', version: httpclientVersion
    compile group: 'org.apache.httpcomponents', name:  'httpcore-osgi', version: httpcoreVersion
    compile group: 'org.fcrepo.camel', name: 'fcrepo-ldpath', version: fcrepoCamelToolboxVersion
    testCompile group: 'junit', name: 'junit', version: junitVersion
    testCompile group: 'org.apache.camel', name: 'camel-test-blueprint', version: camelVersion
    testCompile group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
}

task buildMainClasses {
    ext.destDir = file('build/classes/main')
    outputs.dir destDir
    doLast {
        destDir.mkdirs()
    }
}

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

        instruction 'Import-Package', """
            org.apache.camel,
            org.apache.http.auth,
            org.apache.marmotta.ldcache.api,
            org.apache.marmotta.ldcache.model,
            org.apache.marmotta.ldcache.services,
            org.apache.marmotta.ldclient.api.provider,
            org.apache.marmotta.ldclient.api.endpoint,
            org.apache.marmotta.ldclient.endpoint.rdf,
            org.apache.marmotta.ldclient.provider.rdf,
            org.apache.marmotta.ldpath.backend.linkeddata,
48
            org.fcrepo.client,
acoburn's avatar
acoburn committed
49
50
51
52
53
54
55
56
57
58
59
60
            org.fcrepo.camel.ldpath,
            ${defaultOsgiImports}"""
        instruction 'Export-Package', "edu.amherst.acdc.exts.ldpath;version=${projectOsgiVersion}"
    }
}

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