forked from Netflix/edda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
126 lines (103 loc) · 4 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// Establish version and status
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name
group = "com.netflix.${githubProjectName}"
buildscript {
repositories {
mavenLocal()
mavenCentral() // maven { url 'http://jcenter.bintray.com' }
}
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
allprojects {
repositories {
mavenCentral() // maven { url: 'http://jcenter.bintray.com' }
}
}
apply from: file('gradle/convention.gradle')
apply from: file('gradle/maven.gradle')
apply from: file('gradle/check.gradle')
apply from: file('gradle/license.gradle')
apply from: file('gradle/release.gradle')
apply plugin: 'war'
apply plugin: 'jetty'
apply plugin: 'eclipse'
apply plugin: 'idea'
dependencies {
compile 'javax.ws.rs:jsr311-api:1.1.1'
compile 'com.sun.jersey:jersey-core:1.11'
compile 'com.sun.jersey:jersey-server:1.11'
compile 'com.sun.jersey:jersey-servlet:1.11'
compile 'org.slf4j:slf4j-api:1.6.4'
compile 'org.eclipse.jetty:jetty-server:9.2.6.v20141205'
compile 'org.eclipse.jetty:jetty-servlet:9.2.6.v20141205'
compile 'org.eclipse.jetty:jetty-servlets:9.2.6.v20141205'
compile('com.amazonaws:aws-java-sdk:1.9.6') {
exclude group:'org.codehaus.jackson'
}
compile 'joda-time:joda-time:2.2'
compile 'org.joda:joda-convert:1.2'
compile 'org.codehaus.jackson:jackson-core-asl:1.9.2'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.2'
compile 'commons-beanutils:commons-beanutils:1.8.2'
compile 'commons-collections:commons-collections:3.2.1'
compile 'commons-io:commons-io:2.4'
compile 'com.netflix.servo:servo-core:0.4.10'
compile 'com.googlecode.java-diff-utils:diffutils:1.2.1'
compile 'com.netflix.archaius:archaius-core:0.5.6'
compile 'org.mongodb:mongo-java-driver:2.6.5'
compile 'org.elasticsearch:elasticsearch:0.90.0'
compile 'com.spatial4j:spatial4j:0.3'
// for some reason 'org.apache.httpcomponents:httpclient:4.2.1' is causing
// scalac to generate 'S3ObjectInputStream.class is broken' erro
compile 'org.apache.httpcomponents:httpclient:4.1'
testCompile 'log4j:log4j:1.2.12'
testCompile 'junit:junit-dep:4.10'
testCompile 'org.testng:testng:6.1.1'
testCompile 'org.mockito:mockito-core:1.8.5'
testCompile 'org.scalatest:scalatest_2.11:3.0.0-SNAP3'
runtime 'org.slf4j:slf4j-log4j12:1.6.1'
providedCompile 'javax.servlet:servlet-api:2.5'
// Libraries needed to run the scala tools
scalaTools 'org.scala-lang:scala-compiler:2.11.5'
scalaTools 'org.scala-lang:scala-library:2.11.5'
// Libraries needed for scala api
compile 'org.scala-lang:scala-library:2.11.5'
compile 'org.scala-lang:scala-actors:2.11.5'
//add parsers
compile 'org.scala-lang.modules:scala-parser-combinators_2.11:1.0.2'
}
compileJava {}
compileScala {
scalaCompileOptions.additionalParameters = ["-feature"]
}
test << {
ant.taskdef(name: 'scalatest', classname: 'org.scalatest.tools.ScalaTestAntTask', classpath: classpath.asPath)
ant.scalatest(runpath: testClassesDir, haltonfailure: 'true', fork: 'false')
{
//ant.scalatest(runpath: testClassesDir, haltonfailure: 'true', fork: 'false', suite: 'com.netflix.edda.UtilsTest') {
reporter(type: 'stdout')
}
}
test.outputs.upToDateWhen { false }
import nl.javadude.gradle.plugins.license.License
tasks.withType(License).each { licenseTask ->
licenseTask.exclude '**/*.json'
licenseTask.exclude '**/*.properties'
}
task cleanupGradleLog << {
println 'cleanupGradleLog task!'
def gradle = project.getGradle()
new File("${gradle.getGradleUserHomeDir().getAbsolutePath()}/daemon/${gradle.getGradleVersion()}").listFiles().each{
if(it.getName().endsWith('out.log')){
logger.debug("Cleaning up log file $it")
it.delete()
}
}
}
jettyRun {
webXml = file('src/main/webapp/WEB-INF/web.xml')
}
tasks.jettyRun.dependsOn(cleanupGradleLog)
httpPort = 9080
stopPort = 9090
stopKey = "stopKey"