-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (59 loc) · 1.27 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
apply plugin: 'java-library'
apply plugin: 'maven'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.ajoberstar:grgit:1.4.+'
}
}
ext {
git = org.ajoberstar.grgit.Grgit.open()
gitVersion = "${git.describe()}"
}
group = "world.bilo"
version = gitVersion
sourceCompatibility = 1.7
repositories {
jcenter()
mavenLocal()
}
dependencies {
compile 'world.bilo:bilo-util:1.0.0'
testCompile 'junit:junit:4.+'
testCompile 'org.mockito:mockito-core:2.+'
testRuntime 'org.mockito:mockito-core:2.+'
}
sourceSets {
main {
java {
srcDir 'src'
}
}
test {
java {
srcDirs = ["test/unit", "test/common"]
}
}
acceptanceTest {
java {
srcDirs = ["test/acceptance", "test/common", "src"]
}
}
}
configurations {
acceptanceTestCompile.extendsFrom compile, testCompile
acceptanceTestRuntime.extendsFrom runtime, testRuntime
}
task acceptanceTest(type:Test, dependsOn: assemble) {
description = "run acceptance tests"
testClassesDir = project.sourceSets.acceptanceTest.output.classesDir
classpath = project.sourceSets.acceptanceTest.runtimeClasspath
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}