Skip to content

Commit de54cf7

Browse files
author
Mark Perry
committed
Simplified build scripts
1 parent 2334a95 commit de54cf7

File tree

2 files changed

+6
-37
lines changed

2 files changed

+6
-37
lines changed

demo/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ apply from: "$rootDir/lib.gradle"
66

77
mainClassName = "fj.demo.euler.Problem2"
88

9-
ext {
10-
scalaVersion = "2.9.+"
11-
scalacheckVersion = "1.10.+"
12-
}
13-
149
repositories {
1510
mavenCentral()
1611
}

tests/build.gradle

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,24 @@
1-
/*
2-
* This build file was auto generated by running the Gradle 'init' task
3-
* by 'MarkPerry' at '12/12/13 10:02 AM' with Gradle 1.9
4-
*
5-
* This generated file contains a sample Scala library project to get you started.
6-
* For more details take a look at the Scala plugin chapter in the Gradle
7-
* user guide available at http://gradle.org/docs/1.9/userguide/scala_plugin.html
8-
*/
91

10-
// Apply the scala plugin to add support for Scala
112
apply plugin: 'scala'
123

13-
144
ext {
155
scalaVersion = "2.10.3"
16-
scalacheckVersion = "1.10.+"
17-
scalacheckScalaVersion = "2.10"
6+
scalacheckScalaVersion = "2.10"
7+
scalacheckVersion = "1.10.1"
8+
scalatestScalaVersion= "2.10"
9+
scalatestVersion = "1.9.2"
1810
}
1911

20-
21-
2212
tasks.withType(ScalaCompile) {
2313
scalaCompileOptions.useAnt = false
2414
}
2515

26-
27-
test {
28-
scanForTestClasses = false
29-
include '**/*Test.*'
30-
}
31-
32-
// In this section you declare where to find the dependencies of your project
33-
repositories {
34-
// Use 'maven central' for resolving your dependencies.
35-
// You can declare any Maven/Ivy/file repository here.
36-
mavenCentral()
37-
mavenLocal()
38-
}
39-
40-
4116
dependencies {
4217
compile project(":core")
43-
compile 'org.slf4j:slf4j-api:1.7.5'
18+
compile "org.slf4j:slf4j-api:1.7.5"
4419
compile "org.scala-lang:scala-library:$scalaVersion"
20+
4521
testCompile "org.scala-lang:scala-library:$scalaVersion"
4622
testCompile "org.scalacheck:scalacheck_$scalacheckScalaVersion:$scalacheckVersion"
47-
4823
testCompile "junit:junit:4.11"
49-
testCompile 'org.scalatest:scalatest_2.10:1.9.2'
5024
}

0 commit comments

Comments
 (0)