forked from crate/crate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
32 lines (25 loc) · 800 Bytes
/
Copy pathbuild.gradle
File metadata and controls
32 lines (25 loc) · 800 Bytes
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
apply from: "$rootDir/gradle/javaModule.gradle"
archivesBaseName = 'crate-sigar'
group = 'io.crate'
description = 'Crate.IO Sigar Plugin'
dependencies {
compile project(':core')
// we add the sigar libs as system dep since it is checked in
compile fileTree(dir: 'lib/', include: '*.jar')
testCompile project(':integration-testing')
}
// get version and set it on the project, so it gets appended to the jar name
task getVersion(dependsOn: [':core:getVersion']) {
doFirst {
project.version = project(':core').getVersion.version
}
}
sourceSets.test.output.resourcesDir = null
jar {
doLast {
manifest {
attributes("Implementation-Title": description, "Implementation-Version": project.version)
}
}
}
jar.dependsOn('getVersion')