[example] add Spark framework example

This commit is contained in:
Emanuele Palazzetti 2017-07-20 20:55:10 +02:00 committed by Guillaume Polaert
parent 16a6447cb7
commit da58bb89e9
3 changed files with 47 additions and 0 deletions

25
dd-trace-examples/rest-spark/.gitignore vendored Normal file
View File

@ -0,0 +1,25 @@
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
# IDE
.idea/

View File

@ -0,0 +1,21 @@
group 'me.palazzetti'
version '0.1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.sparkjava:spark-core:2.6.0'
compile 'org.mongodb:mongodb-driver:3.4.2'
compile 'io.opentracing:opentracing-api:0.30.0'
compile 'io.opentracing:opentracing-util:0.30.0'
compile 'io.opentracing.contrib:opentracing-mongo-driver:0.0.2'
testCompile group: 'junit', name: 'junit', version: '4.12'
}

View File

@ -0,0 +1 @@
rootProject.name = 'rest-spark'