-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·79 lines (68 loc) · 2.39 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'war'
apply plugin: 'jettyEclipse'
apply plugin: 'idea'
sourceCompatibility = 1.7
version = '1.0'
ext{
scalaVersion = '2.11'
scalaMinor = '4'
liftVersion = '3.0-M2'
luceneVersion = '4.10.2'
}
repositories {
mavenCentral()
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath (group: 'com.sahlbach.gradle', name: 'gradle-jetty-eclipse-plugin', version: '1.9.+')
}
}
dependencies {
providedCompile 'javax.servlet:javax.servlet-api:3.0.1'
compile 'commons-httpclient:commons-httpclient:3.1'
compile "org.scala-lang:scala-library-all:$scalaVersion.$scalaMinor",
"net.liftweb:lift-mapper_$scalaVersion:$liftVersion",
"net.liftweb:lift-webkit_$scalaVersion:$liftVersion",
"net.liftweb:lift-util_$scalaVersion:$liftVersion",
"net.liftweb:lift-actor_$scalaVersion:$liftVersion",
"net.liftweb:lift-common_$scalaVersion:$liftVersion",
"net.liftweb:lift-json_$scalaVersion:$liftVersion",
'mysql:mysql-connector-java:5.1.33'
compile "org.apache.lucene:lucene-analyzers-common:$luceneVersion"
compile "org.apache.lucene:lucene-queryparser:$luceneVersion"
compile "org.apache.lucene:lucene-core:$luceneVersion"
}
// Scala dependencies
dependencies{
compile 'org.spark-project.akka:akka-actor_2.11:2.3.4-spark'
compile 'org.json4s:json4s-ext_2.11:3.2.10'
compile 'org.json4s:json4s-jackson_2.11:3.2.10'
compile 'com.jolbox:bonecp:0.8.0.RELEASE'
providedCompile 'org.slf4j:slf4j-api:1.7.7'
}
task fetchData(type: JavaExec, dependsOn: classes) {
if ('fetchData' in gradle.startParameter.taskNames &&
gradle.startParameter.logLevel < LogLevel.QUIET) {
println "Note: The task 'fetchData' works best in quiet mode (gradle -q fetchData)"
}
group = 'PistachoTV DB'
description = 'Fetch data from OMDB api'
main = 'DataBase.FetchData'
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
}
task loadData(type: JavaExec, dependsOn: classes) {
if(project.hasProperty('myargs')){
args(myargs.split(','))
}
group = 'PistachoTV DB'
description = 'Dumps all data on [rawData.json] into the DB'
main = 'DataBase.LoadData'
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
}