-
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) · 811 Bytes
/
build.gradle
File metadata and controls
52 lines (44 loc) · 811 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
44
45
46
47
48
49
50
51
52
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
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
jcenter()
}
dependencies {
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"]
}
}
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}