Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
*/
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
// license-gradle plugin: https://github.com/hierynomus/license-gradle-plugin
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
classpath "gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.14.0"
}
}

Expand All @@ -24,6 +25,8 @@ ext.deps = [
'mapreduce-client-core': "org.apache.hadoop:hadoop-mapreduce-client-core:${hadoopVersion}",
minicluster: "org.apache.hadoop:hadoop-minicluster:${hadoopVersion}",
'hdfs-test': "org.apache.hadoop:hadoop-hdfs:${hadoopVersion}:tests",
'common-test': "org.apache.hadoop:hadoop-common:${hadoopVersion}:tests",
'yarn-server-test': "org.apache.hadoop:hadoop-yarn-server-tests:${hadoopVersion}:tests",
]
]

Expand All @@ -32,6 +35,16 @@ allprojects {
group = 'com.linkedin.dynamometer'
}

if (project.hasProperty('overrideBuildEnvironment')) {
// Allow for override of the environment via a property flag
apply from: project.overrideBuildEnvironment
final File overrideFile = rootProject.file(project.overrideBuildEnvironment)
assert overrideFile.isFile() : "The environment script ($overrideFile) does not exist or is not a file"
apply from: overrideFile
} else {
apply from: 'defaultEnvironment.gradle'
}

subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
Expand All @@ -40,11 +53,6 @@ subprojects {

sourceCompatibility = 1.7

repositories {
mavenCentral()
mavenLocal()
}

license {
header rootProject.file('license_header')
// Set the year in the license
Expand Down
6 changes: 6 additions & 0 deletions defaultEnvironment.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
subprojects {
repositories {
mavenCentral()
mavenLocal()
}
}
2 changes: 2 additions & 0 deletions dynamometer-blockgen/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependencies {
compile deps.hadoop.'mapreduce-client-core'

testCompile deps.hadoop.minicluster
testCompile deps.hadoop.'common-test'
testCompile deps.hadoop.'hdfs-test'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-core:2.7.22'
}
2 changes: 2 additions & 0 deletions dynamometer-infra/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ dependencies {
compile project(':dynamometer-workload')

testCompile project(path: ':dynamometer-workload', configuration: 'testArtifacts')
testCompile deps.hadoop.'common-test'
testCompile deps.hadoop.'yarn-server-test'
testCompile deps.hadoop.minicluster
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-all:1.10.19'
Expand Down
2 changes: 2 additions & 0 deletions dynamometer-workload/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependencies {
compile deps.hadoop.'mapreduce-client-core'

testCompile deps.hadoop.minicluster
testCompile deps.hadoop.'common-test'
testCompile deps.hadoop.'hdfs-test'
testCompile 'junit:junit:4.11'
}

Expand Down