-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (44 loc) · 1.6 KB
/
build.gradle
File metadata and controls
52 lines (44 loc) · 1.6 KB
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
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'tmckinnon' at '3/10/15 6:10 PM' with Gradle 1.12
*
* This generated file contains a sample Scala library project to get you started.
* For more details take a look at the Scala plugin chapter in the Gradle
* user guide available at http://gradle.org/docs/1.12/userguide/scala_plugin.html
*/
// Apply the scala plugin to add support for Scala
apply plugin: 'scala'
apply plugin: 'scalaStyle'
// In this section you declare where to find the dependencies of your project
repositories {
// Use 'maven central' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
task wrapper(type: Wrapper) {
gradleVersion = '2.1'
}
buildscript {
repositories {
jcenter() // only work after gradle 1.7
}
dependencies {
classpath 'org.github.ngbinh.scalastyle:gradle-scalastyle-plugin_2.10:0.7.2'//2.11:0.7.2'
}
}
// In this section you declare the dependencies for your production and test code
dependencies {
// We use Scala 2.11 in our library project -- xml module isn't included in default lib
// compile 'org.scala-lang:scala-library:2.11.0'
compile 'org.scala-lang:scala-library:2.10.2'
// We use Scalatest for testing our library
testCompile 'junit:junit:4.11'
testCompile 'org.scalatest:scalatest_2.11:2.1.5'
testRuntime 'org.scala-lang.modules:scala-xml_2.11:1.0.1'
}
scalaStyle {
configLocation = "scalastyle_config.xml"
includeTestSourceDirectory = true
source = "src/main/scala"
testSource = "src/test/scala"
}