-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
131 lines (103 loc) · 3.39 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
apply plugin: 'java'
apply plugin: 'maven'
apply from: "$rootDir/gradle/repositories.gradle"
apply from: "$rootDir/gradle/dependencies.gradle"
group = 'com.klarna'
version = '1.0.0'
description = """"""
sourceCompatibility = 1.7
targetCompatibility = 1.7
allprojects {
apply plugin: 'idea'
}
idea {
module {
//excludeDirs += [file('tcserver'), file('build_tmp')]
}
project {
jdkName = '1.8'
languageLevel = '1.7'
ipr {
withXml { xmlFile ->
// enable 'Annotation Processors'
xmlFile.asNode().component.find { it.@name == 'CompilerConfiguration' }['annotationProcessing'][0].replaceNode {
annotationProcessing {
profile(default: true, name: 'Default', useClasspath: 'true', enabled: true)
}
}
// setup Git root
xmlFile.asNode().component.find { it.@name == 'VcsDirectoryMappings' }.replaceNode {
component(name: 'VcsDirectoryMappings') {
mapping(directory: "", vcs: "")
mapping(directory: "\$PROJECT_DIR\$", vcs: 'Git')
}
}
}
}
}
}
subprojects {
}
subprojects.each { subproject -> evaluationDependsOn(subproject.path)}
repositories {
maven { url repos.nexus }
maven { url repos.nexus_cloudera }
maven { url repos.nexus_thirdparty }
maven { url repos.nexus_conjars }
maven { url repos.nexus_central }
//If Nexus Goes Down, Uncomment these lines. Be sure to enable Proxy Settings as well. May create a switch for this.
// maven { url repos.cloudera }
// maven { url repos.conjars }
// maven { url repos.mvncentral }
// mavenCentral()
}
dependencies {
compile([
libs.hadoopCore,
libs.hadoopCommon,
libs.hadoopClient,
libs.hiveShims,
libs.hiveSerde,
libs.hiveContrib,
libs.datanucleusApiJDO,
libs.datanucleusCore,
libs.datanucleusRDBMS,
libs.hsqldb,
libs.reflections,
libs.pentaho
// libs.kryo
])
//TODO Use dependency variables
compile(group: 'org.apache.hive', name: 'hive-service', version:"$hiveVersion") {
exclude(module: 'derby')
exclude(module: 'datanucleus-api-jdo')
exclude(module: 'datanucleus-core')
exclude(module: 'datanucleus-rdbms')
exclude(module: 'bonecp')
}
compile(group: 'junit', name: 'junit', version:'4.11') {
/* This dependency was originally in the Maven provided scope, but the project was not of type war.
This behavior is not yet supported by Gradle, so this dependency has been converted to a compile dependency.
Please review and delete this closure when resolved. */
}
testCompile([
libs.mockitoCore,
libs.hamcrestAll
])
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "http://arlpscsp01.ecorp.cat.com:8081/nexus/content/repositories/thirdparty/") {
authentication(userName: "admin", password: "admin123")
}
addFilter('jar')
{
artifact, file -> artifact.ext == 'jar'
}
}
}
}
wrapper {
gradleVersion = '2.4'
}