diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1da66988b6..61117857fe 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -40,9 +40,6 @@ updates: opentelemetry-deps-java: patterns: - "io.opentelemetry.*" - amazon-deps: - patterns: - - "*amazon*" java-other: patterns: - "*" diff --git a/.github/workflows/ci-java.yml b/.github/workflows/ci-java.yml index 4808e3724c..84e012878c 100644 --- a/.github/workflows/ci-java.yml +++ b/.github/workflows/ci-java.yml @@ -12,17 +12,27 @@ on: branches: - main +permissions: + pull-requests: write + jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: corretto - java-version: '11' - - uses: burrunan/gradle-cache-action@v1.19 + java-version: 17 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 with: - remote-build-cache-proxy-enabled: false - arguments: build --stacktrace - build-root-directory: java + validate-wrappers: true + add-job-summary-as-pr-comment: on-failure # Valid values are 'never' (default), 'always', and 'on-failure' + + - name: Execute Gradle build + run: | + cd java + ./gradlew build --scan --stacktrace diff --git a/.github/workflows/release-layer-java.yml b/.github/workflows/release-layer-java.yml index 68ed1be5c6..930c2f18c6 100644 --- a/.github/workflows/release-layer-java.yml +++ b/.github/workflows/release-layer-java.yml @@ -18,17 +18,20 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK for running Gradle - uses: actions/setup-java@v4 + - uses: actions/setup-java@v4 with: - distribution: temurin + distribution: corretto java-version: 17 - - uses: gradle/gradle-build-action@v3 - name: Build Javaagent Layer + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 with: - arguments: :layer-javaagent:assemble - build-root-directory: java + validate-wrappers: true + + - name: Execute Gradle build + run: | + cd java + ./gradlew :layer-javaagent:assemble --scan --stacktrace - uses: actions/upload-artifact@v4 name: Save assembled layer to build