Last active
December 18, 2015 10:48
-
-
Save yclian/5770741 to your computer and use it in GitHub Desktop.
`build.gradle` for `spark-demo`.
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
apply plugin: 'java' | |
apply plugin: 'idea' | |
apply from: 'libraries.gradle' | |
defaultTasks 'build' | |
group = 'com.yclian.demo.spark' | |
repositories { | |
mavenCentral() | |
maven { | |
name 'apache.snapshots' | |
url 'https://repository.apache.org/content/repositories/snapshots' | |
} | |
maven { | |
name 'sonatype.snapshots' | |
url 'https://oss.sonatype.org/content/repositories/snapshots' | |
} | |
} | |
dependencies { | |
compile libraries.commonsCollection | |
compile libraries.commonsIo | |
compile libraries.commonsLang | |
compile libraries.guava | |
compile libraries.spark | |
testCompile libraries.junit | |
} | |
sourceCompatibility = "1.8" | |
targetCompatibility = "1.8" |
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
ext { | |
commonsCollectionVersion = '4.0-SNAPSHOT' | |
commonsIoVersion = '1.3.2' | |
commonsLangVersion = '3.1' | |
guavaVersion = '14.0.1' | |
sparkVersion = '0.9.9.7-SNAPSHOT' | |
junitVersion = '4.11' | |
libraries = [ | |
commonsCollection: "org.apache.commons:commons-collections4:${commonsCollectionVersion}", | |
commonsIo: "org.apache.commons:commons-io:${commonsIoVersion}", | |
commonsLang: "org.apache.commons:commons-lang3:${commonsLangVersion}", | |
guava: "com.google.guava:guava:${guavaVersion}", | |
spark: "com.sparkjava:spark-core:${sparkVersion}", | |
junit: "junit:junit:${junitVersion}" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment