-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (59 loc) · 1.83 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
plugins {
id 'java'
id 'application'
}
group 'org.devalurum'
version '1.0'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
ext {
fingBugsVersion = "3.0.2"
seleniumVersion = '4.1.3'
webDriverVersion = "5.2.0"
lombokVersion = "1.18.24"
slf4jNopVersion = "1.7.36"
apacheCommonsVersion = "3.0"
}
dependencies {
implementation "com.google.code.findbugs:jsr305:$fingBugsVersion"
implementation "org.seleniumhq.selenium:selenium-java:$seleniumVersion"
implementation "io.github.bonigarcia:webdrivermanager:$webDriverVersion"
implementation "org.slf4j:slf4j-nop:$slf4jNopVersion"
implementation "org.apache.commons:commons-lang3:$apacheCommonsVersion"
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testImplementation 'org.mockito:mockito-core:4.6.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
application {
mainClass = "org.devalurum.egrp365bot.BotRunner"
}
jar {
archiveFileName = "${project.name}.jar"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'Main-Class': 'org.devalurum.egrp365bot.BotRunner',
'Class-Path': configurations.compileClasspath.files.collect { it.getName() }.join(' ')
)
}
from { (configurations.compileClasspath).collect { it.isDirectory() ? it : zipTree(it) } } {
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
}
application {
applicationDefaultJvmArgs = ['-Dfile.encoding=UTF8']
}
run {
standardInput = System.in
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform()
}