-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
66 lines (55 loc) · 1.53 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
group 'com.admin.tafmetar'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: "eclipse"
apply plugin: 'application'
apply plugin: "jacoco"
mainClassName = "com.admin.tafmetar.Main"
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.12'
compile group: 'com.github.pengrad', name: 'java-telegram-bot-api', version: '3.6.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
compile group: 'com.google.code.gson', name: 'gson', version: '2.7'
compile group: 'com.db4o', name: 'com.db4o', version: '7.7.67'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jacoco {
toolVersion = "0.8.0"
reportsDir = file("$buildDir/customJacocoReportDir")
}
ext.sharedManifest = manifest {
attributes(
'Main-Class': mainClassName,
"Implementation-Title": "santus-dubot",
"Implementation-Version": version)
}
task jarMaker(type: Jar) {
manifest = project.manifest {
from sharedManifest
}
}
jar {
manifest {
attributes(
'Main-Class': mainClassName,
"Implementation-Title": "santus-dubot",
"Implementation-Version": version)
}
}
task serve(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = mainClassName
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}