Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from burrunan/gradle-cache-action to gradle/actions/setup-gradle #1294

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ updates:
opentelemetry-deps-java:
patterns:
- "io.opentelemetry.*"
amazon-deps:
patterns:
- "*amazon*"
java-other:
patterns:
- "*"
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/ci-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
17 changes: 10 additions & 7 deletions .github/workflows/release-layer-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading