This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
92 lines (76 loc) · 2.51 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
89
90
91
92
import com.github.spotbugs.snom.SpotBugsTask
import java.nio.charset.StandardCharsets
plugins {
id "java-library"
id "checkstyle"
id "pmd"
id "jacoco"
id "com.github.ben-manes.versions" version "0.43.0"
id "com.github.spotbugs" version "5.0.13"
id "org.sonarqube" version "3.5.0.2730"
id "com.jfrog.bintray" version "1.8.5"
}
group = "com.github.rosolko"
version = "1.1.3-SNAPSHOT"
description = "WebDriver manager for java"
apply from: rootProject.file("gradle/code-quality.gradle")
apply from: rootProject.file("gradle/publish.gradle")
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
ext {
encoding = StandardCharsets.UTF_8.toString()
log4j2Version = "2.19.0"
}
tasks.withType(JavaCompile) {
options.incremental = true
options.encoding = encoding
options.compilerArgs += ["-Xlint"]
options.release = 8
sourceCompatibility = 17
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(17)
}
}
tasks.withType(Javadoc) {
options.encoding = encoding
}
tasks.withType(Test) {
useJUnitPlatform()
testLogging.showStandardStreams = true
systemProperty("file.encoding", encoding)
systemProperty("java.enums.logging.manager", "org.apache.logging.log4j.jul.LogManager")
systemProperty("junit.jupiter.execution.parallel.enabled", "true")
systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(8)
}
}
tasks.withType(SpotBugsTask) {
excludeFilter = rootProject.file("config/spotbugs/excludeFilter.xml")
reports {
xml.enabled = false
html.enabled = true
}
}
repositories {
mavenCentral()
}
dependencies {
annotationProcessor('com.github.bsideup.jabel:jabel-javac-plugin:1.0.0')
api("org.apache.logging.log4j:log4j-api:$log4j2Version")
implementation("org.jsoup:jsoup:1.15.3")
implementation("kr.motd.maven:os-maven-plugin:1.7.0")
implementation("org.apache.commons:commons-compress:1.21")
testImplementation("org.assertj:assertj-core:3.23.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.1")
testRuntimeOnly("org.apache.logging.log4j:log4j-core:$log4j2Version")
testRuntimeOnly("org.apache.logging.log4j:log4j-jul:$log4j2Version")
testRuntimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:$log4j2Version")
testRuntimeOnly("com.lmax:disruptor:3.4.4")
}
wrapper {
gradleVersion = "7.4.2"
}