-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
39 lines (32 loc) · 994 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
apply from: "${rootDir}/gradle/versions.gradle"
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'groovy'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
classpath 'org.ajoberstar:grgit:1.7.0'
}
}
def git = org.ajoberstar.grgit.Grgit.open(dir: '.')
version = "1.3.1-${new Date().format('yyyyMMddHHmm')}-${git.head().abbreviatedId}"
repositories {
mavenCentral()
maven { url "https://repo.spring.io/plugins-release" }
}
dependencies {
implementation(
"org.codehaus.groovy:groovy-all:${versions.groovy}",
"org.jenkins-ci.main:jenkins-core:${versions.jenkins}",
"org.eclipse.hudson:hudson-core:${versions.hudson}",
"org.yaml:snakeyaml:${versions.snakeyaml}@jar"
)
}
shadowJar {
classifier = 'fat'
dependencies {
include(dependency("org.yaml:snakeyaml:${versions.snakeyaml}@jar"))
}
}