File tree Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 6
6
.DS_Store
7
7
.gradle /
8
8
build /
9
+ out /
9
10
! src /** /build
10
11
releasenotes.html
Original file line number Diff line number Diff line change 1
1
JobDSL Common Library (JDCL)
2
+
3
+
4
+ Build:
5
+
6
+ gradle build shadowJar
7
+
8
+
9
+
10
+ JFI (testing jobs): https://github.com/unguiculus/job-dsl-sample/blob/master/build.gradle
Original file line number Diff line number Diff line change @@ -7,16 +7,14 @@ buildscript {
7
7
repositories {
8
8
jcenter()
9
9
}
10
+
10
11
dependencies {
11
12
classpath ' com.github.jengelman.gradle.plugins:shadow:2.0.4'
12
13
classpath ' org.ajoberstar:grgit:1.7.0'
13
14
}
14
15
}
15
16
16
- ext {
17
- git = org.ajoberstar.grgit.Grgit . open(file(' .' ))
18
- }
19
-
17
+ def git = org.ajoberstar.grgit.Grgit . open(dir : ' .' )
20
18
version = " 1.0-${ new Date().format('yyyyMMddHHmm')} -${ git.head().abbreviatedId} "
21
19
22
20
repositories {
@@ -25,7 +23,7 @@ repositories {
25
23
}
26
24
27
25
dependencies {
28
- compile (
26
+ implementation (
29
27
" org.codehaus.groovy:groovy-all:${ versions.groovy} " ,
30
28
" org.jenkins-ci.main:jenkins-core:${ versions.jenkins} " ,
31
29
" org.eclipse.hudson:hudson-core:${ versions.hudson} " ,
@@ -38,4 +36,4 @@ shadowJar {
38
36
dependencies {
39
37
include(dependency(" org.yaml:snakeyaml:${ versions.snakeyaml} @jar" ))
40
38
}
41
- }
39
+ }
Original file line number Diff line number Diff line change
1
+ // enable DSL support in IDEA, see https://confluence.jetbrains.com/display/GRVY/Scripting+IDE+for+DSL+awareness
2
+
3
+ def ctx = context(pathRegexp: /.*\/jobs\/.*groovy/)
4
+ contributor(ctx, {
5
+ delegatesTo(findClass('javaposse.jobdsl.dsl.DslFactory'))
6
+ })
You can’t perform that action at this time.
0 commit comments