From 2b7578eacf1d8e424f5b8f5746e7988a09299746 Mon Sep 17 00:00:00 2001 From: Breno A Date: Thu, 11 Jan 2024 13:29:26 -0300 Subject: [PATCH 1/3] Create codecov.yml --- .github/workflows/codecov.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..4ebee10 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,20 @@ +name: Workflow for Codecov +on: [push, pull_request] +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up JDK 18 + uses: actions/setup-java@v1 + with: + java-version: 18 + - name: Install dependencies + run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V + - name: Run tests and collect coverage + run: mvn -B test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4-beta + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 4eb76f10aa35d4a56b0a78c47272418ec1f0a194 Mon Sep 17 00:00:00 2001 From: Breno A Date: Thu, 11 Jan 2024 13:30:11 -0300 Subject: [PATCH 2/3] Fix: Move CodeCov --- .github/workflows/maven.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d1801ee..1b888d5 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -29,7 +29,3 @@ jobs: cache: maven - name: Build with Maven run: mvn -B package --file pom.xml - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 1845e85c2a7d910e9265565cfea4bda658f7be0f Mon Sep 17 00:00:00 2001 From: Breno A Date: Thu, 11 Jan 2024 13:32:48 -0300 Subject: [PATCH 3/3] Update pom.xml --- pom.xml | 196 +++++++++++++++++++++++++++++++------------------------- 1 file changed, 107 insertions(+), 89 deletions(-) diff --git a/pom.xml b/pom.xml index de89bf7..57ae562 100644 --- a/pom.xml +++ b/pom.xml @@ -1,95 +1,113 @@ - - 4.0.0 - tech.brenoepic - at4j - 0.0.1 - - Azure Translator For Java - + 4.0.0 + tech.brenoepic + at4j + 0.0.1 + Azure Translator For Java + A simple Java library to translate text using Azure AI Cognitive Services. Fast and easy to configure. - https://github.com/brenoepics/at4j - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.12.1 - - 9 - 9 - - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.1.0 - - - - true - tech.brenoepic.at4j.AT4J - - - - - - - - UTF-8 - - - - jitpack.io - https://jitpack.io - - - - - com.squareup.okhttp3 - okhttp - 4.12.0 - compile - - - org.apache.logging.log4j - log4j-api - 2.22.1 - - - org.apache.logging.log4j - log4j-core - 2.22.1 - - - com.fasterxml.jackson.core - jackson-databind - 2.16.1 - - - com.google.guava - guava - 33.0.0-jre - - - org.mockito - mockito-inline - 5.2.0 - compile - - - org.mockito - mockito-junit-jupiter - 5.8.0 - compile - - + https://github.com/brenoepics/at4j + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.12.1 + + 9 + 9 + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.0 + + + + true + tech.brenoepic.at4j.AT4J + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.11 + + + prepare-agent + + prepare-agent + + + + report + test + + report + + + + + + + + UTF-8 + + + + jitpack.io + https://jitpack.io + + + + + com.squareup.okhttp3 + okhttp + 4.12.0 + compile + + + org.apache.logging.log4j + log4j-api + 2.22.1 + + + org.apache.logging.log4j + log4j-core + 2.22.1 + + + com.fasterxml.jackson.core + jackson-databind + 2.16.1 + + + com.google.guava + guava + 33.0.0-jre + + + org.mockito + mockito-inline + 5.2.0 + compile + + + org.mockito + mockito-junit-jupiter + 5.8.0 + compile + +