forked from Crystark/Orestes-Bloomfilter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
67 lines (55 loc) · 1.3 KB
/
build.gradle
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
apply plugin: 'java'
apply plugin: 'maven'
def distFolder = file("dist")
def docFolder = file("dist/doc")
def projectName = 'bloom-filter'
version = "1.05-port-java7"
group = "com.baqend"
repositories {
mavenCentral()
}
dependencies {
compile(
'com.google.code.gson:gson:2.2.4',
'redis.clients:jedis:2.5.1',
'org.apache.commons:commons-pool2:2.2'
)
testCompile(
'junit:junit:4.11',
'org.apache.commons:commons-math:2.2',
'com.google.guava:guava:11.0.2',
'org.apache.commons:commons-lang3:3.0'
)
}
test.ignoreFailures = true
javadoc.destinationDir = docFolder
jar.baseName = projectName
jar.destinationDir = distFolder
task dist(dependsOn: jar, type: Jar) {
copy {
from configurations.compile
into distFolder
}
baseName = projectName
from sourceSets.main.allSource
destinationDir distFolder
classifier = 'source'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://$projectDir/maven-repo")
}
}
}