File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change 1
- version : 2
1
+ version : 2.1
2
+
3
+ commands :
4
+ setup_build_environment :
5
+ description : ' Checkout, update submodules, restore the cache, and setup docker'
6
+ steps :
7
+ - checkout
8
+ - run :
9
+ name : Generate cache key
10
+ command : find . -type f -name "*.gradle*" -o -name "gradle-wrapper*" -exec shasum {} + | sort > /tmp/checksum.txt && cat /tmp/checksum.txt
11
+ - restore_cache :
12
+ keys :
13
+ - v1-dependencies-{{ checksum "/tmp/checksum.txt" }}
14
+ # fallback to using the latest cache if no exact match is found
15
+ - v1-dependencies-
16
+
2
17
jobs :
3
18
build :
4
19
# For testcontainers.org
10
25
JVM_OPTS : -Xmx1g
11
26
TERM : dumb
12
27
steps :
13
- - checkout
14
- # TODO Task 'downloadDependencies' not found in root project 'hypertrace-otel-agent'.
15
- # # Download and cache dependencies
16
- # - restore_cache:
17
- # keys:
18
- # - v1-dependencies-{{ checksum "build.gradle.kts" }}
19
- # # fallback to using the latest cache if no exact match is found
20
- # - v1-dependencies-
21
- #
22
- #
23
- # - run: ./gradlew downloadDependencies
24
- #
25
- # - save_cache:
26
- # paths:
27
- # - ~/.gradle
28
- # key: v1-dependencies-{{ checksum "build.gradle.kts" }}
28
+ - setup_build_environment
29
29
- run : make build
30
30
31
31
muzzle :
@@ -37,13 +37,13 @@ jobs:
37
37
JVM_OPTS : -Xmx1g
38
38
TERM : dumb
39
39
steps :
40
- - checkout
40
+ - setup_build_environment
41
41
- run : make muzzle
42
42
release-publish :
43
43
docker :
44
44
- image : circleci/openjdk:11.0.6-jdk-buster
45
45
steps :
46
- - checkout
46
+ - setup_build_environment
47
47
- run : ./gradlew :tag -Prelease
48
48
- run : ./gradlew publish
49
49
- add_ssh_keys :
You can’t perform that action at this time.
0 commit comments