-
Notifications
You must be signed in to change notification settings - Fork 45
/
build.gradle
47 lines (35 loc) · 1.08 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
plugins {
id 'com.github.ben-manes.versions' version '0.14.0'
}
ext {
scalaVersionMain = "2.11"
scalaVersion = "2.11.9"
finatraVersion = "2.9.0"
}
println("Scala Version: ${scalaVersion}")
println("Scala Version Main: ${scalaVersionMain}")
println("Finatra Version: ${finatraVersion}")
apply plugin: 'scala'
repositories {
mavenLocal()
mavenCentral()
maven { url "http://maven.twttr.com" }
}
dependencies {
compile "org.scala-lang:scala-library:${scalaVersion}",
'io.swagger:swagger-core:1.5.13',
"io.swagger:swagger-scala-module_${scalaVersionMain}:1.0.3",
"org.webjars:swagger-ui:3.0.4",
'net.bytebuddy:byte-buddy:1.6.12'
testCompile "org.scalatest:scalatest_${scalaVersionMain}:3.0.1",
'joda-time:joda-time:2.9.9'
compile "com.twitter:finatra-http_${scalaVersionMain}:${finatraVersion}"
}
compileJava {
targetCompatibility = "1.8"
}
apply from: 'publish.gradle'
task runSampleApp(type: JavaExec, description: 'Run the sample application.') {
classpath sourceSets.test.runtimeClasspath
main = "com.github.xiaodongw.swagger.finatra.SampleApp"
}