-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
66 lines (53 loc) · 1.27 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
plugins {
id 'groovy'
id 'com.github.johnrengelman.shadow' version '4.0.4'
id "com.katalon.gradle-plugin" version "0.0.7"
}
group = 'com.kazurayam'
version = '0.1.0'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
ext {
groovyVersion = '2.4.7'
}
configurations {
generateDocs
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
generateDocs "org.codehaus.groovy:groovy-all:${groovyVersion}"
}
def defaultEncoding = 'UTF-8'
tasks.withType(AbstractCompile).each { it.options.encoding = defaultEncoding }
tasks.withType(GroovyCompile).each {it.groovyOptions.encoding = defaultEncoding }
sourceSets {
main {
groovy {
srcDirs = ['Keywords']
}
}
}
shadowJar {
exclude 'Temp*.class'
exclude 'their/*.class'
}
katalon {
dependencyPrefix = "com.katalon"
minimize = false
}
task groovydoc(type:Groovydoc, overwrite:true) {
group = 'com.kazurayam'
source = sourceSets.main.groovy
classpath = configurations.compile
groovyClasspath = project.configurations.generateDocs
include 'com/kazurayam/ks/globalvariable/*'
exclude '**/*Test.groovy'
}
task publishGroovydoc(type: Copy) {
from 'build/docs/groovydoc'
into 'docs/api'
}
groovydoc.finalizedBy publishGroovydoc