-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle.kts
69 lines (57 loc) · 1.84 KB
/
build.gradle.kts
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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
plugins {
idea
`java-gradle-plugin`
groovy
codenarc
id("com.gradle.plugin-publish") version "1.1.0"
}
repositories {
mavenCentral()
}
dependencies {
codenarc("org.codenarc:CodeNarc:3.2.0") {
exclude(module = "GMetrics")
}
codenarc("org.codehaus.groovy:groovy-all:3.0.13")
implementation("org.ysb33r.gradle:grolifant50:2.0.2")
implementation("org.apache.maven:maven-artifact:3.8.7")
testImplementation("org.spockframework:spock-core:2.3-groovy-3.0") {
exclude(module = "groovy")
}
}
group = "com.github.erdi"
version = "3.2"
idea {
project {
jdkName ="1.8"
}
}
codenarc.configFile = file("gradle/codenarc/rulesets.groovy")
tasks.register<Test>("endToEndTest") {
classpath = files(sourceSets.test.map { it.runtimeClasspath }, "src/e2e/resources")
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
maxHeapSize = "1g"
jvmArgs("-XX:MaxMetaspaceSize=128m")
testLogging {
exceptionFormat = FULL
}
}
tasks.withType<GroovyCompile>().configureEach {
groovyOptions.forkOptions.memoryMaximumSize = "256m"
}
gradlePlugin {
vcsUrl.set("https://github.com/erdi/webdriver-binaries-gradle-plugin")
website.set("https://github.com/erdi/webdriver-binaries-gradle-plugin/blob/master/README.md")
plugins {
create("webDriverBinariesPlugin") {
id = "com.github.erdi.webdriver-binaries"
implementationClass = "com.github.erdi.gradle.webdriver.WebDriverBinariesPlugin"
displayName = "WebDriver Binaries Plugin"
description = "A plugin that downloads and caches WebDriver binaries specific to the OS the build runs on."
tags.set(setOf("WebDriver", "selenium", "test", "chromedriver", "geckodriver"))
}
}
}