-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
67 lines (56 loc) · 1.47 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
plugins {
id 'java'
id 'groovy'
id 'com.github.johnrengelman.shadow' version '4.0.4'
id "com.katalon.gradle-plugin" version "0.0.7"
}
group = 'com.kazurayam'
jar.archiveBaseName = "ksbackyard"
version = '0.41.0'
ext {
groovyVersion = '2.4.7'
}
configurations {
generateDocs
implementation.exclude group: 'org.seleniumhq.selenium'
implementation.exclude group: 'commons-io'
implementation.exclude group: 'com.google.code.gson'
implementation.exclude group: 'org.hamcrest'
implementation.exclude group: 'junit'
implementation.exclude group: 'org.mockito'
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/ru.yandex.qatools.ashot/ashot
implementation group: 'ru.yandex.qatools.ashot', name: 'ashot', version: '1.5.4'
generateDocs "org.codehaus.groovy:groovy-all:${groovyVersion}"
}
sourceSets {
main {
groovy {
srcDirs = ['Keywords']
}
}
}
shadowJar {
exclude 'Temp*.class'
}
katalon {
dependencyPrefix = "com.kazurayam"
minimize = false
}
task groovydoc(type: Groovydoc, overwrite:true) {
source = sourceSets.main.groovy
classpath = configurations.compileClasspath
groovyClasspath = project.configurations.generateDocs
include 'com/kazurayam/ksbackyard/*'
exclude '**/*Test.groovy'
}
task publishGroovydoc(type: Copy) {
from 'build/docs/groovydoc'
into 'docs/api'
}
groovydoc.finalizedBy publishGroovydoc