Last active
February 8, 2021 20:31
-
-
Save gmodena/a56638c5c689d7809d029461bf93acf1 to your computer and use it in GitHub Desktop.
LearningHadoop2 - Chapter2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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