-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (38 loc) · 750 Bytes
/
build.gradle
File metadata and controls
43 lines (38 loc) · 750 Bytes
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
apply plugin: 'java'
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDir '.'
include 'scratch.java'
}
}
test {
java {
srcDir '.'
include 'scratch.java'
}
}
solutionTest {
java {
srcDir '.'
include 'solution.java'
}
}
}
dependencies {
compile 'junit:junit-dep:4.10'
compile 'org.mockito:mockito-core:1.8.5'
solutionTestCompile 'junit:junit-dep:4.10'
solutionTestCompile 'org.mockito:mockito-core:1.8.5'
}
task scratch(type: Test) {
testClassesDir = sourceSets.test.output.classesDir
classpath = sourceSets.test.runtimeClasspath
}
task solution(type: Test) {
testClassesDir = sourceSets.solutionTest.output.classesDir
classpath = sourceSets.solutionTest.runtimeClasspath
}