-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (73 loc) · 2.54 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
79
80
81
82
83
84
85
86
87
88
plugins {
id 'groovy'
id 'java'
id 'io.freefair.lombok' version '6.4.1'
}
group 'es.sralloza'
version '0.4.0'
repositories {
mavenCentral()
}
dependencies {
// Utils
implementation 'org.projectlombok:lombok:1.18.24'
implementation 'com.google.inject:guice:5.1.0'
implementation 'com.typesafe:config:1.4.2'
implementation 'org.scilab.forge:jlatexmath:1.0.7'
// HTTP
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
// Json encoding
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.0'
// Redis
implementation 'redis.clients:jedis:4.3.1'
// Telegram
implementation 'org.telegram:telegrambots:6.1.0'
implementation 'org.telegram:telegrambots-abilities:6.1.0'
// Logging
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'com.tersesystems.logback:logback-classic:1.1.1'
implementation('com.tersesystems.logback:logback-structured-config:1.0.3') {
exclude group: 'junit', module: 'junit'
}
implementation 'com.tersesystems.logback:logback-typesafe-config:1.1.1'
implementation 'net.logstash.logback:logstash-logback-encoder:7.2'
// Testing
testImplementation('com.squareup.okhttp3:mockwebserver:4.9.3') {
exclude group: 'junit', module: 'junit'
}
testImplementation 'org.mockito:mockito-core:5.0.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-migrationsupport:5.8.2'
}
test {
useJUnitPlatform()
testLogging {
showExceptions = true
exceptionFormat = 'full'
showCauses = true
showStackTraces = true
showStandardStreams = false
events "passed", "skipped", "failed"
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
println "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
}
}
showStandardStreams = true
}
}
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jar {
manifest {
attributes "Main-Class": "Main"
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}