File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ VERSION 0.8
2
2
FROM eclipse-temurin:21-jdk-jammy
3
3
WORKDIR /code
4
4
5
+ # build-with-gradle builds and tests with Gradle, and saves the build/ directory
5
6
build-with-gradle :
6
7
COPY gradlew .
7
8
COPY gradle gradle
@@ -16,11 +17,13 @@ build-with-gradle:
16
17
# Just copy everything rather than maintain a whitelist of files/dirs.
17
18
SAVE ARTIFACT --keep-ts build AS LOCAL build
18
19
20
+ # run-with-gradle runs the demo program with Gradle, building if needed
19
21
run-with-gradle :
20
22
FROM +build-with-gradle
21
23
COPY run-with-gradle.sh .
22
24
RUN ./run-with-gradle.sh
23
25
26
+ # build-with-maven builds and tests with Maven, and saves the target/ directory
24
27
build-with-maven :
25
28
COPY mvnw .
26
29
COPY .mvn .mvn
@@ -33,15 +36,18 @@ build-with-maven:
33
36
# Just copy everything rather than maintain a whitelist of files/dirs.
34
37
SAVE ARTIFACT --keep-ts target AS LOCAL target
35
38
39
+ # run-with-maven runs the demo program with Maven, building if needed
36
40
run-with-maven :
37
41
FROM +build-with-maven
38
42
COPY run-with-maven.sh .
39
43
RUN ./run-with-maven.sh
40
44
45
+ # build executes both +build-with-gradle and +build-with-maven targets
41
46
build :
42
47
BUILD +build-with-gradle
43
48
BUILD +build-with-maven
44
49
50
+ # run executes both +run-with-gradle and +run-with-maven targets
45
51
run :
46
52
BUILD +run-with-gradle
47
53
BUILD +run-with-maven
You can’t perform that action at this time.
0 commit comments