Skip to content

Commit 8f2c2cc

Browse files
vinokurigribafish
andauthored
Added Develocity integration and enabled caching. (#781)
Added Develocity key config to GHA workflows Added build cache input normalization for unstable entries in META-INF Co-authored-by: Gasper Kojek <gkojek@gradle.com>
1 parent 9544120 commit 8f2c2cc

File tree

7 files changed

+95
-0
lines changed

7 files changed

+95
-0
lines changed

.github/workflows/build-pr-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
registry: quay.io
4848
- name: Build with Maven
4949
run: mvn -B clean install -U -Pintegration
50+
env:
51+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_API_TOKEN }}
5052
- name: Build and push images
5153
if: github.event_name == 'pull_request'
5254
run: ./build/build.sh --tag:${{ env.PR_IMAGE_TAG }} --build-platforms:linux/amd64,linux/ppc64le,linux/arm64 --builder:podman --push-image

.github/workflows/next-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
registry: quay.io
4545
- name: Build with Maven
4646
run: mvn -B clean install -U -Pintegration
47+
env:
48+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_API_TOKEN }}
4749
- name: Build and push images
4850
id: build
4951
run: |

.github/workflows/sonar.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ jobs:
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
2929
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_API_TOKEN }}
3031
run: mvn -B clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Psonar -Pintegration

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,6 @@ tests/e2e/load-test-folder
9898
*/.grunt
9999
*/.lock-wscript
100100
*/cypress-tests/dist
101+
102+
# Develocity
103+
.mvn/.develocity/develocity-workspace-id

.mvn/develocity.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<!--
3+
4+
Copyright (c) 2012-2025 Red Hat, Inc. and others.
5+
This program and the accompanying materials are made
6+
available under the terms of the Eclipse Public License 2.0
7+
which is available at https://www.eclipse.org/legal/epl-2.0/
8+
9+
SPDX-License-Identifier: EPL-2.0
10+
11+
Contributors:
12+
Gasper Kojek
13+
14+
-->
15+
<develocity
16+
xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17+
xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd">
18+
<server>
19+
<url>https://develocity-staging.eclipse.org</url>
20+
</server>
21+
<projectId>ecd.che</projectId>
22+
<buildScan>
23+
<obfuscation>
24+
<ipAddresses>0.0.0.0</ipAddresses>
25+
</obfuscation>
26+
<publishing>
27+
<onlyIf>
28+
<![CDATA[authenticated]]>
29+
</onlyIf>
30+
</publishing>
31+
<backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload>
32+
</buildScan>
33+
<buildCache>
34+
<local>
35+
<enabled>#{isFalse(env['CI'])}</enabled>
36+
</local>
37+
<remote>
38+
<enabled>true</enabled>
39+
<storeEnabled>#{isTrue(env['CI'])}</storeEnabled>
40+
</remote>
41+
</buildCache>
42+
</develocity>

.mvn/extensions.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2012-2025 Red Hat, Inc. and others.
5+
This program and the accompanying materials are made
6+
available under the terms of the Eclipse Public License 2.0
7+
which is available at https://www.eclipse.org/legal/epl-2.0/
8+
9+
SPDX-License-Identifier: EPL-2.0
10+
11+
Contributors:
12+
Gasper Kojek
13+
14+
-->
15+
<extensions>
16+
<extension>
17+
<groupId>com.gradle</groupId>
18+
<artifactId>develocity-maven-extension</artifactId>
19+
<version>1.23.1</version>
20+
</extension>
21+
<extension>
22+
<groupId>com.gradle</groupId>
23+
<artifactId>common-custom-user-data-maven-extension</artifactId>
24+
<version>2.0.1</version>
25+
</extension>
26+
</extensions>

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,25 @@
18531853
</dependency>
18541854
</dependencies>
18551855
</plugin>
1856+
<plugin>
1857+
<groupId>com.gradle</groupId>
1858+
<artifactId>develocity-maven-extension</artifactId>
1859+
<configuration>
1860+
<develocity>
1861+
<normalization>
1862+
<runtimeClassPath>
1863+
<metaInf>
1864+
<ignoredAttributes>
1865+
<ignore>Implementation-Version</ignore>
1866+
<ignore>Date</ignore>
1867+
<ignore>SCM-Revision</ignore>
1868+
</ignoredAttributes>
1869+
</metaInf>
1870+
</runtimeClassPath>
1871+
</normalization>
1872+
</develocity>
1873+
</configuration>
1874+
</plugin>
18561875
</plugins>
18571876
</pluginManagement>
18581877
<plugins>

0 commit comments

Comments
 (0)