-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
71 lines (62 loc) · 2.09 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
plugins {
id("groovy")
id("com.github.johnrengelman.shadow") version "7.1.1"
id("io.micronaut.application") version "3.2.2"
id "com.github.otkmnb2783.dotenv" version "0.2.0"
id "com.github.erdi.webdriver-binaries" version "2.7"
id "com.github.erdi.extended-idea" version "2.2"
}
version = "1.2.0"
group = "com.ham.kompromat"
repositories {
mavenCentral()
}
dependencies {
implementation("info.picocli:picocli")
implementation("io.micronaut.groovy:micronaut-runtime-groovy")
implementation("io.micronaut:micronaut-jackson-databind")
implementation("io.micronaut:micronaut-validation")
implementation("io.micronaut.picocli:micronaut-picocli")
implementation("jakarta.annotation:jakarta.annotation-api")
implementation("org.gebish:geb-spock:5.1")
implementation("org.gebish:geb-core:5.1")
implementation("org.seleniumhq.selenium:selenium-chrome-driver:4.1.2")
implementation("org.seleniumhq.selenium:selenium-firefox-driver:4.1.2")
implementation("org.seleniumhq.selenium:selenium-support:4.1.2")
implementation("io.github.bonigarcia:webdrivermanager:5.1.0")
compileOnly("info.picocli:picocli-codegen")
runtimeOnly("ch.qos.logback:logback-classic")
testImplementation("io.micronaut:micronaut-http-client")
}
application {
mainClass.set("com.kompromat.KompromatCommand")
executableDir = ''
}
// We're stuck on Java 11 until https://github.com/erdi/webdriver-binaries-gradle-plugin/issues/30 is fixed
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
micronaut {
testRuntime("spock2")
processing {
incremental(true)
annotations("com.ham.kompromat.*")
}
}
ext {
drivers = ["gecko", "chrome"]
}
webdriverBinaries {
driverUrlsConfiguration = resources.text.fromFile('drivers.json')
chromedriver {
version = "99.0.4844.35"
downloadRoot = java.nio.file.Path.of('./build').toFile()
}
geckodriver {
version = "0.30.0"
downloadRoot = java.nio.file.Path.of('./build').toFile()
}
configureTasks(project.tasks.withType(JavaExec))
}