From 92b4277c1758749b67d7ad91c1a27993f120ded2 Mon Sep 17 00:00:00 2001 From: Shailesh Date: Mon, 24 Jul 2023 17:08:54 +0530 Subject: [PATCH] pom file updated --- .github/workflows/jacoco.yml | 37 ------------------------------------ pom.xml | 32 ++++++++++++++++++++++++++----- 2 files changed, 27 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/jacoco.yml diff --git a/.github/workflows/jacoco.yml b/.github/workflows/jacoco.yml deleted file mode 100644 index f6dc5929..00000000 --- a/.github/workflows/jacoco.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Java CI with JaCoCo - -on: - push: - -jobs: - build-and-test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Code Coverage - uses: actions/setup-java@v3 - with: - java-version: "11" - distribution: "adopt" - - - name: Build with Maven - run: mvn clean package - - - name: Run Tests with JaCoCo - run: mvn jacoco:prepare-agent test jacoco:report - - - name: Check Code Coverage - run: | - total_lines=$(xmllint --xpath 'string(//counter[@type="LINE"]/@covered)' target/site/jacoco/jacoco.xml) - total_lines=${total_lines:-0} - total_missed=$(xmllint --xpath 'string(//counter[@type="LINE"]/@missed)' target/site/jacoco/jacoco.xml) - total_missed=${total_missed:-0} - total_percentage=$(awk "BEGIN { pc=100*${total_lines}/(${total_lines}+${total_missed}) } { printf \"%f\", pc }") - echo "Total Coverage Percentage: $total_percentage" - if (( $(bc <<< "$total_percentage < 70.0") )); then - echo "Code Coverage is below 80% - failing the CI build." - exit 1 - else - echo "Code Coverage is satisfactory - CI build passed." - fi diff --git a/pom.xml b/pom.xml index 321bea63..d07f4d11 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cms jar contentstack-management-java - 1.0.0-SNAPSHOT + 1.0.0 Contentstack Java Management SDK for Content Management API, Contentstack is a headless CMS with an API-first approach @@ -79,8 +79,7 @@ - 0.1.0-SNAPSHOT - ${sdk.version}-SNAPSHOT + 1.0.0 1.8 1.8 UTF-8 @@ -92,7 +91,7 @@ 2.9.0 2.9.0 4.10.0 - 0.8.5 + 0.8.7 1.18.28 5.9.2 5.8.0-M1 @@ -184,6 +183,7 @@ maven-surefire-plugin 3.0.0-M5 + true true @@ -299,10 +299,11 @@ + org.jacoco jacoco-maven-plugin - ${jococo-plugin.version} + 0.8.7 prepare-agent @@ -312,6 +313,7 @@ report + test report @@ -319,6 +321,26 @@ + + + + + org.apache.maven.plugins + maven-pdf-plugin + + + pdf + site + + pdf + + + ${project.reporting.outputDirectory} + false + + + +