Skip to content

Commit 8afff0e

Browse files
authored
build: setup gradle build for jenkins library (#86)
Signed-off-by: Paolo Chila <paolo.chila@dynatrace.com>
1 parent 04190c6 commit 8afff0e

File tree

8 files changed

+390
-2
lines changed

8 files changed

+390
-2
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,12 @@
88
**sshfs**
99
# No DS Store files
1010
.DS_Store
11+
12+
# Ignore Gradle project-specific cache directory
13+
.gradle
14+
15+
# Ignore Gradle build output directory
16+
build
17+
18+
# Ignore IntelliJ IDEA settings folder
19+
.idea

build.gradle

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
plugins {
2+
id 'groovy'
3+
}
4+
5+
group 'sh.keptn'
6+
version '5.1.2-SNAPSHOT'
7+
8+
repositories {
9+
mavenCentral()
10+
maven {
11+
url "https://repo.jenkins-ci.org/public/"
12+
}
13+
}
14+
15+
sourceSets {
16+
main {
17+
groovy {
18+
srcDirs = ['src','vars']
19+
}
20+
resources {
21+
srcDirs = ['resources']
22+
}
23+
}
24+
test {
25+
groovy {
26+
srcDirs = ['test']
27+
}
28+
}
29+
}
30+
31+
dependencies {
32+
implementation 'org.codehaus.groovy:groovy-all:3.0.8'
33+
implementation 'org.apache.ivy:ivy:2.5.0'
34+
implementation 'org.jenkins-ci.main:jenkins-core:2.332'
35+
implementation 'org.kohsuke.stapler:stapler:1.263'
36+
implementation 'org.jenkins-ci.plugins.workflow:workflow-step-api:2.24'
37+
implementation 'org.jenkins-ci.plugins:pipeline-utility-steps:2.12.0@jar'
38+
implementation 'org.jenkins-ci.plugins:credentials:2.6.2@jar'
39+
implementation 'org.jenkins-ci.plugins:plain-credentials:1.8@jar'
40+
testImplementation 'com.lesfurets:jenkins-pipeline-unit:1.13'
41+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
42+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
43+
}
44+
45+
test {
46+
useJUnitPlatform()
47+
}

gradle/wrapper/gradle-wrapper.jar

58.4 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
4+
distributionSha256Sum=b586e04868a22fd817c8971330fec37e298f3242eb85c374181b12d637f80302
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

gradlew

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rootProject.name = 'keptn-library'
2+

0 commit comments

Comments
 (0)