-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (62 loc) · 2.17 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
/*
gradle clean build
gradle app
*/
buildscript {
repositories { jcenter() }
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVer",
"com.github.ben-manes:gradle-versions-plugin:$gradleVersionsPluginVer"
}
}
plugins {
id "io.spring.dependency-management" version '0.5.6.RELEASE'
id 'net.saliman.properties' version '1.4.5'
}
apply plugin: 'scala'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'com.github.ben-manes.versions'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = sourceCompatibility
group = group
jar {
version = version
baseName = baseName
}
repositories { jcenter() }
// gradle bootRun -Dserver.context-path=/app
bootRun { systemProperties = System.properties }
dependencies {
compile "org.scala-lang:scala-library:$scalaVer",
"org.slf4j:slf4j-api:$slf4jVer",
"org.psnively:spring_scala_$springScalaVer",
'org.springframework.boot:spring-boot-starter-web',
'org.springframework.boot:spring-boot-devtools',
"org.scalatra:scalatra_$scalatraVer",
"org.scalatra:scalatra-json_$scalatraVer",
"org.scalatra:scalatra-json:$scalatraJsonVer",
"org.json4s:json4s-jackson_$json4sJacksonVer"
testCompile "junit:junit:$jUnitVer",
"org.scalactic:scalactic_$scalatestVer",
"org.scalatest:scalatest_$scalatestVer",
"org.specs2:specs2_$specs2Ver",
'org.springframework.boot:spring-boot-starter-test',
"org.scalatra:scalatra-scalatest_$scalatraVer",
"org.scalatra:scalatra-specs2_$scalatraVer"
}
task app(type: JavaExec, dependsOn: classes) {
main = 'com.daggerok.scala.spring.Application'
classpath sourceSets.main.runtimeClasspath,
configurations.runtime
}
tasks.withType(ScalaCompile) {
configure(scalaCompileOptions.forkOptions) {
memoryMaximumSize = '1g'
jvmArgs = ['-XX:MaxPermSize=512m']
}
}
task wrapper(type: Wrapper) { gradleVersion = gradleVersion }
defaultTasks "clean", "build"