-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (55 loc) · 1.42 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
plugins {
id 'java'
id 'application'
id 'jacoco'
}
import org.gradle.api.tasks.testing.logging.TestLogEvent
tasks.named('wrapper') {
gradleVersion = "6.7"
distributionType = Wrapper.DistributionType.ALL
}
java {
sourceCompatibility = JavaVersion.VERSION_15
targetCompatibility = JavaVersion.VERSION_15
}
test {
useTestNG()
testLogging {
events TestLogEvent.STARTED, TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED
}
}
tasks.withType(JavaCompile) {
options.compilerArgs += "--enable-preview"
}
tasks.withType(Test) {
jvmArgs += "--enable-preview"
}
tasks.withType(JavaExec) {
jvmArgs += "--enable-preview"
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.apache.commons:commons-lang3:3.11"
implementation "org.slf4j:slf4j-api:2.0.0-alpha1"
implementation "com.google.guava:guava:30.0-jre"
implementation "com.squareup.okhttp3:okhttp:4.10.0-RC1"
runtimeOnly "org.apache.logging.log4j:log4j-slf4j18-impl:2.14.0"
testImplementation "com.squareup.okhttp3:mockwebserver:4.10.0-RC1"
testImplementation "org.mockito:mockito-core:3.6.0"
testImplementation "org.testng:testng:7.3.0"
}
application {
mainClassName = "net.akaritakai.aoc2020.Main"
}
jacoco {
toolVersion = "0.8.6"
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport