-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (37 loc) · 965 Bytes
/
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
buildscript {
repositories {
mavenCentral()
}
dependencies {
}
}
apply plugin: 'java'
jar {
baseName = 'OEV'
version = oevVersion
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-core:1.3'
testCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'org.mockito:mockito-core:2.12.0'
}
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'OEV',
'Implementation-Version': oevVersion,
'Main-Class': 'oev.App'
}
baseName = project.name + '-' + oevVersion + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
from("${projectDir}"){
include '*.properties'
}
with jar
}