-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (44 loc) · 980 Bytes
/
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
plugins {
id("com.mkobit.jenkins.pipelines.shared-library") version "0.2.0"
}
group 'io.nextlayer.ci'
version '0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
}
task initLibraries(type: Copy){
from('./') {
include 'src/**/*'
include 'vars/**/*'
}
into 'build/classes/groovy/test/nextlayerci-example@master'
}
test.dependsOn initLibraries
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.12'
testCompile 'junit:junit:4.12'
testImplementation(group: 'junit', name: 'junit', version: '4.12')
}
sharedLibrary {
pipelineTestUnitVersion = "1.1"
groovyVersion = "2.4.12"
coreVersion = "2.73"
}
sourceSets {
main {
groovy {
// don't add vars - it's loaded dynamic!
srcDirs = ['src']
}
}
test {
groovy {
srcDirs = ['test']
}
}
}