Skip to content

Instantly share code, notes, and snippets.

@gmodena
Last active February 8, 2021 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmodena/a56638c5c689d7809d029461bf93acf1 to your computer and use it in GitHub Desktop.
Save gmodena/a56638c5c689d7809d029461bf93acf1 to your computer and use it in GitHub Desktop.
LearningHadoop2 - Chapter2
// Update of https://github.com/learninghadoop2/book-examples/blob/master/ch2/build.gradle
// Default to HTTPs maven central to fix broken dependencies.
apply plugin:'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories{
maven {
url = 'https://repo1.maven.org/maven2/'
}
}
dependencies {
compile 'org.apache.avro:avro:1.7.7'
}
task run(type:JavaExec) {
main = 'com.learninghadoop2.avro.AvroParse'
classpath = sourceSets.main.runtimeClasspath
}
task wrapper(type: Wrapper) {
gradleVersion '2.0'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment