Skip to content

Instantly share code, notes, and snippets.

@yclian
Last active December 18, 2015 10:48
Show Gist options
  • Save yclian/5770741 to your computer and use it in GitHub Desktop.
Save yclian/5770741 to your computer and use it in GitHub Desktop.
`build.gradle` for `spark-demo`.
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"
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