This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
/
build.gradle
84 lines (70 loc) · 2.44 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
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-eclipse'
group 'org.springframework.scala'
archivesBaseName = "spring-scala_2.11"
//set Java compiler -source and -target options
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
ext {
springVersion = '3.2.4.RELEASE'
scalaVersion = '2.11.2'
scalaLibVersion = '2.11'
}
repositories {
maven { url "https://repo.springsource.org/libs-snapshot" }
}
dependencies {
// Spring
optional("org.springframework:spring-aop:$springVersion")
compile("org.springframework:spring-core:$springVersion")
compile("org.springframework:spring-beans:$springVersion")
compile("org.springframework:spring-context:$springVersion")
optional("org.springframework:spring-jdbc:$springVersion")
optional("org.springframework:spring-jms:$springVersion")
optional("org.springframework:spring-web:$springVersion")
optional("org.springframework:spring-test:$springVersion")
// Scala
compile("org.scala-lang:scala-library:$scalaVersion")
compile("org.scala-lang:scala-reflect:$scalaVersion")
//needs to be as separate jar file for scala 2.11
compile("org.scala-lang.modules:scala-xml_$scalaLibVersion:1.0.2")
// Jackson
optional("com.fasterxml.jackson.module:jackson-module-scala_$scalaLibVersion:2.4.2")
// Java EE
provided("org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1")
provided("javax.servlet:servlet-api:2.5")
provided("javax.inject:javax.inject:1")
// Test
testCompile("org.scalatest:scalatest_$scalaLibVersion:2.2.2")
testCompile("junit:junit:4.10")
testRuntime("org.hsqldb:hsqldb-j5:2.2.4")
testRuntime("log4j:log4j:1.2.16")
testCompile("org.springframework:spring-aspects:$springVersion")
}
//Java compiler settings
tasks.withType(JavaCompile) {
//ignore conjunction warning
options.compilerArgs << '-Xlint:-options'
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.additionalParameters = ["-feature", "-language:implicitConversions", "-language:reflectiveCalls"]
scalaCompileOptions.useAnt = false
}
task wrapper(type: Wrapper) {
description = 'Generates gradlew[.bat] scripts'
gradleVersion = '1.12'
}
buildscript {
repositories {
maven { url 'https://repo.springsource.org/plugins-release' }
}
dependencies {
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7'
}
}