File tree Expand file tree Collapse file tree 4 files changed +138
-2
lines changed Expand file tree Collapse file tree 4 files changed +138
-2
lines changed Original file line number Diff line number Diff line change
1
+ version : 2.1
2
+ parameters :
3
+ node-version :
4
+ type : string
5
+ default : " 16.13.2"
6
+ orbs :
7
+ node : circleci/node@5.0.0
8
+ slack : circleci/slack@4.5.3
9
+ commands :
10
+ notify_on_failure :
11
+ steps :
12
+ - slack/notify :
13
+ event : fail
14
+ custom : |
15
+ {
16
+ "blocks": [
17
+ {
18
+ "type": "section",
19
+ "fields": [
20
+ {
21
+ "type": "mrkdwn",
22
+ "text": ":red_circle: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* build failed"
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "type": "actions",
28
+ "elements": [
29
+ {
30
+ "type": "button",
31
+ "text": {
32
+ "type": "plain_text",
33
+ "text": "View Job"
34
+ },
35
+ "url": "${CIRCLE_BUILD_URL}"
36
+ }
37
+ ]
38
+ }
39
+ ]
40
+ }
41
+ notify_on_pass :
42
+ steps :
43
+ - slack/notify :
44
+ event : pass
45
+ custom : |
46
+ {
47
+ "blocks": [
48
+ {
49
+ "type": "section",
50
+ "fields": [
51
+ {
52
+ "type": "mrkdwn",
53
+ "text": ":tada: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* was successfully built and published"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "type": "actions",
59
+ "elements": [
60
+ {
61
+ "type": "button",
62
+ "text": {
63
+ "type": "plain_text",
64
+ "text": "View Job"
65
+ },
66
+ "url": "${CIRCLE_BUILD_URL}"
67
+ }
68
+ ]
69
+ }
70
+ ]
71
+ }
72
+
73
+ openjdk-install : cloudesire/openjdk-install@1.2.3
74
+ jobs :
75
+ test :
76
+ docker :
77
+ - image : circleci/openjdk:8
78
+ steps :
79
+ - checkout
80
+ - restore_cache :
81
+ key : gradle-{{ checksum "build.gradle" }}
82
+
83
+ - run : ./gradlew downloadDependencies --daemon
84
+ - save_cache :
85
+ key : gradle-{{ checksum "build.gradle" }}
86
+ paths :
87
+ - ~/.gradle/caches
88
+ - ~/.gradle/wrapper
89
+ build :
90
+ docker :
91
+ - image : cimg/base:stable
92
+ user : root
93
+ steps :
94
+ - checkout
95
+ - node/install :
96
+ node-version : << pipeline.parameters.node-version >>
97
+ - setup_remote_docker :
98
+ version : 19.03.13
99
+ docker_layer_caching : true
100
+ # build and push Docker image
101
+ - run :
102
+ name : Install component-build-helper lib
103
+ command : npm install -g @elastic.io/component-build-helper
104
+ - run :
105
+ name : Build and publish docker image
106
+ command : build_component_docker
107
+ - notify_on_failure
108
+ - notify_on_pass
109
+
110
+ workflows :
111
+ test :
112
+ jobs :
113
+ - test :
114
+ name : " Running tests"
115
+ filters :
116
+ tags :
117
+ ignore : /.*/
118
+ publish_release :
119
+ jobs :
120
+ - build :
121
+ name : " Build and publish docker image"
122
+ filters :
123
+ branches :
124
+ ignore : /.*/
125
+ tags :
126
+ only : /^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/
Original file line number Diff line number Diff line change
1
+ ## 1.0.3 (March 16, 2022)
2
+ * Updated the sailor version to 3.3.8
3
+ * Add a component pusher to Docker hub
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ apply plugin: 'eclipse'
5
5
apply plugin : ' java-library-distribution'
6
6
7
7
group = ' io.elastic'
8
- version = ' 1.0.2'
8
+
9
+ task downloadDependencies () {
10
+ description ' Download all dependencies to the Gradle cache'
11
+ doLast {
12
+ configurations. findAll { it. canBeResolved }. files
13
+ }
14
+ }
9
15
10
16
sourceCompatibility = 1.8
11
17
targetCompatibility = 1.8
@@ -31,7 +37,7 @@ repositories {
31
37
}
32
38
33
39
dependencies {
34
- compile " io.elastic:sailor-jvm:3.1.0 "
40
+ compile " io.elastic:sailor-jvm:3.3.8 "
35
41
compile " org.glassfish.jersey.core:jersey-client:2.25.1"
36
42
compile " org.glassfish.jersey.media:jersey-media-json-processing:2.25.1"
37
43
}
Original file line number Diff line number Diff line change 2
2
"title" : " Petstore API (Java)" ,
3
3
"description" : " elastic.io component for the Petstore API" ,
4
4
"docsUrl" : " https://github.com/elasticio/petstore-component-java" ,
5
+ "version" : " 1.0.3" ,
5
6
"credentials" : {
6
7
"fields" : {
7
8
"apiKey" : {
You can’t perform that action at this time.
0 commit comments