forked from erdi/webdriver-binaries-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (73 loc) · 2.21 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
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'codenarc'
id 'com.github.erdi.idea-base' version '2.2'
id 'com.github.erdi.extended-idea' version '2.2'
id 'com.gradle.plugin-publish' version '0.12.0'
id 'com.energizedwork.asl2' version '1.1'
}
apply from: 'gradle/idea/idea.gradle'
repositories {
mavenCentral()
jcenter()
}
dependencies {
codenarc('org.codenarc:CodeNarc:1.0') {
exclude module: 'GMetrics'
exclude group: 'org.codehaus.groovy'
}
codenarc 'org.codehaus.groovy:groovy-all:2.4.11'
compile 'org.ysb33r.gradle:grolifant:0.11'
compile 'org.apache.maven:maven-artifact:3.6.3'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4', {
exclude module: 'groovy-all'
}
}
version = '2.4'
codenarc.configFile = file('gradle/codenarc/rulesets.groovy')
tasks.withType(Test) {
maxHeapSize = "1g"
jvmArgs '-XX:MaxMetaspaceSize=128m'
testLogging {
exceptionFormat = 'full'
}
}
tasks.withType(GroovyCompile) {
groovyOptions.forkOptions.memoryMaximumSize = '256m'
}
gradlePlugin {
plugins {
webdriverBinariesPlugin {
id = 'com.github.erdi.webdriver-binaries'
implementationClass = 'com.github.erdi.gradle.webdriver.WebDriverBinariesPlugin'
}
}
}
pluginBundle {
vcsUrl = 'https://github.com/erdi/webdriver-binaries-gradle-plugin'
plugins {
webdriverBinariesPlugin {
website = 'https://github.com/erdi/webdriver-binaries-gradle-plugin/blob/master/README.md'
description = 'A plugin that downloads and caches WebDriver binaries specific to the OS the build runs on.'
id = 'com.github.erdi.webdriver-binaries'
displayName = 'WebDriver Binaries Plugin'
tags = ['WebDriver', 'selenium', 'test', 'chromedriver', 'geckodriver']
}
}
}
task endToEndTest(type: Test) {
options {
includeCategories 'com.github.erdi.gradle.webdriver.category.EndToEnd'
}
}
tasks.withType(Test) {
maxHeapSize = "1g"
jvmArgs '-XX:MaxMetaspaceSize=128m'
testLogging {
exceptionFormat = 'full'
}
}
tasks.withType(GroovyCompile) {
groovyOptions.forkOptions.memoryMaximumSize = '256m'
}