-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (67 loc) · 1.87 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
70
71
72
73
74
75
76
77
78
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.9'
}
}
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'info.solidsoft.pitest'
javadoc {
options {
links( 'http://docs.oracle.com/javase/8/docs/api/' )
encoding 'UTF-8'
docEncoding 'UTF-8'
charSet 'UTF-8'
}
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.destination "${buildDir}/reports/jacoco"
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: "${buildDir}/classes/main",
exclude: ['it/itjustworks/coropaulusbot/server/**',
'it/itjustworks/coropaulusbot/commands/CoroPaulusSearch.class'])
})
}
}
repositories {
jcenter()
mavenCentral()
maven { url "http://maven.restlet.org" }
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'org.restlet.jse:org.restlet:2.3.9'
compile 'org.restlet.jse:org.restlet.ext.jackson:2.3.9'
compile 'com.github.pengrad:java-telegram-bot-api:2.3.1'
compile 'com.github.itjustworksteam:javacoropaulusapi:0.1.1'
testCompile 'junit:junit:4.12'
testCompile 'com.github.stefanbirkner:system-rules:1.16.0'
testCompile 'org.mockito:mockito-core:2.7.14'
}
pitest {
targetClasses = [ "it.itjustworks.coropaulusbot.*" ]
}
shadowJar {
archiveName 'coropaulusbot.jar'
}
task stage() {
dependsOn clean, shadowJar
}
tasks.stage.doLast() {
delete 'build/classes'
delete 'build/dependency-cache'
delete 'build/tmp'
delete fileTree(dir: 'build/libs', exclude: '*.jar')
}
shadowJar.mustRunAfter clean