-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathbuild.gradle
47 lines (39 loc) · 1.02 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
plugins {
id "com.github.johnrengelman.shadow" version "6.0.0"
}
group 'adoptopenjdk'
version '1.0.0-SNAPSHOT'
apply plugin: 'groovy'
// Get compile errors if using 11
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
main {
groovy {
srcDirs = ['build', 'src/main/groovy', 'library/src']
buildDir = 'target'
}
}
}
repositories {
mavenCentral()
maven {
url 'https://repo.jenkins-ci.org/releases'
}
maven {
url "https://repo.jenkins-ci.org/public"
}
}
shadowJar {
archiveName = 'adopt-shared-lib.jar'
}
dependencies {
compile group: 'org.jenkins-ci.main', name: 'jenkins-core', version: '2.85', ext: 'pom'
compile group: 'org.jenkins-ci.plugins.workflow', name: 'workflow-step-api', version: '2.22', ext: 'jar'
compile 'org.codehaus.groovy:groovy-all:3.0.4'
testCompile('org.junit.jupiter:junit-jupiter-api:5.4.1')
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.4.1')
}
test {
useJUnitPlatform()
}