diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c7765dc..a8a002a 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -23,11 +23,12 @@ jobs: args: build jacocoTestReport - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: name: unit test reports fail_ci_if_error: true flags: unit + token: ${{ secrets.CODECOV_TOKEN }} - name: copy test reports uses: hypertrace/github-actions/gradle@main diff --git a/platform-metrics/build.gradle.kts b/platform-metrics/build.gradle.kts index 036ca17..dd20c7c 100644 --- a/platform-metrics/build.gradle.kts +++ b/platform-metrics/build.gradle.kts @@ -19,7 +19,6 @@ dependencies { implementation("io.github.mweirauch:micrometer-jvm-extras:0.2.2") implementation("org.slf4j:slf4j-api:1.7.36") - implementation("org.apache.logging.log4j:log4j-slf4j-impl:2.19.0") implementation("io.dropwizard.metrics:metrics-jvm:4.2.16") implementation("io.prometheus:simpleclient_dropwizard:0.12.0") implementation("io.prometheus:simpleclient_servlet:0.12.0") @@ -32,4 +31,5 @@ dependencies { testImplementation("org.junit.jupiter:junit-jupiter:5.9.0") testImplementation("org.mockito:mockito-core:4.8.0") testImplementation("com.github.ben-manes.caffeine:caffeine:3.1.8") + testRuntimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.19.0") }