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

Enable Local Build Caching and Apply Optimizations #2656

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
8 changes: 6 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ jobs:
distribution: 'temurin'
java-version: '21'

- name: Setup Develocity
uses: gradle/develocity-actions/[email protected]
with:
add-pr-comment: false
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

- name: Compile project
run: ./mvnw -B -ntp clean package -Pquickbuild -Dtoolchain.skip=true
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
7 changes: 5 additions & 2 deletions .github/workflows/receive-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Setup Develocity
uses: gradle/develocity-actions/[email protected]
with:
add-pr-comment: false
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

# Capture the PR number
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
Expand All @@ -43,8 +48,6 @@ jobs:
# Execute recipes
- name: Apply OpenRewrite recipes
run: ./mvnw -Dtoolchain.skip=true -Dlicense.skip=true -DskipTests=true -P openrewrite clean install
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

# Capture the diff
- name: Create patch
Expand Down
1 change: 0 additions & 1 deletion .mvn/.develocity/develocity-workspace-id

This file was deleted.

2 changes: 1 addition & 1 deletion .mvn/develocity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</buildScan>
<buildCache>
<local>
<enabled>false</enabled>
<enabled>true</enabled>
</local>
<remote>
<enabled>false</enabled>
Expand Down
16 changes: 16 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,22 @@
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>

<plugin>
<groupId>com.gradle</groupId>
<artifactId>develocity-maven-extension</artifactId>
<configuration>
<develocity>
<normalization>
<runtimeClassPath>
<metaInf>
<ignoreCompletely>true</ignoreCompletely>
</metaInf>
</runtimeClassPath>
</normalization>
</develocity>
</configuration>
</plugin>
</plugins>
</pluginManagement>

Expand Down