-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (45 loc) · 1.37 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse-wtp'
apply plugin: 'idea'
sourceCompatibility = 1.7
targetCompatibility = 1.7
archivesBaseName = "test-kiji"
[compileJava, compileTestJava]*.options.collect {options -> options.encoding = 'UTF-8'}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
configurations.all {
resolutionStrategy.cacheChangingModulesFor 10, 'seconds'
}
repositories {
maven {
credentials {
username "deployment"
password "deployment"
}
url 'http://repo1.maven.org/maven2/'
}
maven {
url 'https://repo.wibidata.com/artifactory/kiji'
}
}
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.6.6'
compile group: 'org.kiji.schema', name: 'kiji-schema', version: '1.3.2'
compile group: 'org.apache.hadoop', name: 'hadoop-common', version: '2.0.0-cdh4.2.1'
compile group: 'org.apache.hbase', name: 'hbase', version: '0.94.2-cdh4.2.1'
testCompile group: 'junit', name: 'junit', version: '4.8.+'
}
task sourceJar(type: Jar) {
description = 'Builds a source jar artifact suitable for maven deployment.'
classifier = 'sources'
from sourceSets.main.java
}
build.dependsOn sourceJar
// The binary jar is added automatically
artifacts {
archives sourceJar
}
// idea stuff
ideaProject {
javaVersion = "1.7"
}