Skip to content

Commit

Permalink
Add setup-maven action (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
jprinet authored Sep 18, 2024
1 parent 89897d6 commit 9f1bf05
Show file tree
Hide file tree
Showing 8 changed files with 26,962 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
java-version: '17'
distribution: 'temurin'
- name: Setup Build Scan dump capture
uses: ./maven-setup
uses: ./setup-maven
- name: Run Maven Build 1
working-directory: ./sample/common-develocity-maven-configuration
run: mvn clean -B -X -Ddevelocity.url=${{ env.DV_URL }}
Expand All @@ -120,7 +120,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Build Scan link capture
uses: ./maven-setup
uses: ./setup-maven
- name: Publish Build Scans
uses: ./maven-publish-build-scan
with:
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A collection of composite GitHub Actions related to [Develocity](https://gradle.

---

## maven-setup action
## setup-maven action

### Features

Expand All @@ -25,14 +25,14 @@ name: PR Build
jobs:
build:
- name: Setup Maven
uses: gradle/develocity-actions/maven-setup@v1
uses: gradle/develocity-actions/setup-maven@v1
- name: Build with Maven
run: ./mvnw clean package
[...]
```

> [!NOTE]
> When authenticated access is required to publish a Build Scan®, it is recommended to provide as input `develocity-access-key` to the `maven-setup` step. This triggers a request for a [short-lived access token](https://docs.gradle.com/develocity/api-manual/#short_lived_access_tokens) instead of relying on the `DEVELOCITY_ACCESS_KEY` environment variable.
> When authenticated access is required to publish a Build Scan®, it is recommended to provide as input `develocity-access-key` to the `setup-maven` step. This triggers a request for a [short-lived access token](https://docs.gradle.com/develocity/api-manual/#short_lived_access_tokens) instead of relying on the `DEVELOCITY_ACCESS_KEY` environment variable.
---

Expand Down Expand Up @@ -117,7 +117,7 @@ name: PR Build
jobs:
build:
- name: Setup Maven
uses: gradle/develocity-actions/maven-setup@v1
uses: gradle/develocity-actions/setup-maven@v1
with:
develocity-url: 'https://scans.gradle.com'
develocity-injection-enabled: 'true'
Expand Down Expand Up @@ -216,7 +216,7 @@ name: PR Build
jobs:
build:
- name: Setup Maven
uses: gradle/develocity-actions/maven-setup@v1
uses: gradle/develocity-actions/setup-maven@v1
- name: Build with Maven
run: ./mvnw clean package
[...]
Expand All @@ -241,7 +241,7 @@ jobs:
pull-requests: write
steps:
- name: Setup Build Scan link capture
uses: gradle/develocity-actions/maven-setup@v1
uses: gradle/develocity-actions/setup-maven@v1
- name: Publish Build Scans
uses: gradle/develocity-actions/maven-publish-build-scan@v1
with:
Expand Down
Loading

0 comments on commit 9f1bf05

Please sign in to comment.