@@ -17,20 +17,38 @@ run-with-gradle:
17
17
COPY run-with-gradle.sh .
18
18
RUN ./run-with-gradle.sh
19
19
20
+ # For CI so that GitHub can copy artifacts
21
+ # Javadocs and jars
22
+ SAVE ARTIFACT --keep-ts build/libs/modern-java-practices-0-javadoc.jar
23
+ SAVE ARTIFACT --keep-ts build/docs/javadoc/ AS LOCAL build/docs/javadoc/
24
+
25
+ # Test coverage and badge for Gradle:
26
+ # You need to PICK ONE from Gradle or Maven for your build.
27
+ # This project uses Maven (see below) to create the code coverage badge.
28
+ # Commented is the minimum needed from the containerized build when using
29
+ # Gradle.
30
+ # After this enabling this, you still need to update the GitHub action steps
31
+ # to generate the badge using a custom path to the CVS report.
32
+ # SAVE ARTIFACT --save-ts build/reports/jacoco/test/jacocoTestReport.csv AS LOCAL build/reports/jacoco/test/jacocoTestReport.csv
33
+
20
34
build-with-maven :
21
35
COPY mvnw .
22
36
COPY .mvn .mvn
23
37
COPY pom.xml .
24
38
COPY config config
25
39
COPY src src
26
40
RUN --secret OWASP_NVD_API_KEY ./mvnw --no-transfer-progress clean verify
41
+
27
42
# For CI so that GitHub can copy artifacts
28
43
# Javadocs and jars
29
- SAVE ARTIFACT --keep-ts target/apidocs/ AS LOCAL target/apidocs/
30
44
SAVE ARTIFACT --keep-ts target/modern-java-practices-0-SNAPSHOT-javadoc.jar AS LOCAL target/modern-java-practices-0-SNAPSHOT-javadoc.jar
31
- SAVE ARTIFACT --keep-ts target/testapidocs / AS LOCAL target/testapidocs /
45
+ SAVE ARTIFACT --keep-ts target/apidocs / AS LOCAL target/apidocs /
32
46
SAVE ARTIFACT --keep-ts target/modern-java-practices-0-SNAPSHOT-test-javadoc.jar AS LOCAL target/modern-java-practices-0-SNAPSHOT-test-javadoc.jar
47
+ SAVE ARTIFACT --keep-ts target/testapidocs/ AS LOCAL target/testapidocs/
48
+
33
49
# Test coverage and badge
50
+ # Note that ONLY the Maven containerized build updates the README frontpage
51
+ # badge for coverage. This is to avoid multiple updating.
34
52
SAVE ARTIFACT --keep-ts target/site/jacoco/jacoco.csv AS LOCAL target/site/jacoco/jacoco.csv
35
53
36
54
run-with-maven :
0 commit comments