Skip to content

Commit 74ee163

Browse files
authored
NIFI-13856 Added build integration with develocity.apache.org (#10301)
Signed-off-by: David Handermann <[email protected]>
1 parent 6d6a4f5 commit 74ee163

File tree

9 files changed

+92
-1
lines changed

9 files changed

+92
-1
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ env:
4343
--no-transfer-progress
4444
--fail-fast
4545
-D dir-only
46+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
4647

4748
concurrency:
4849
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/code-compliance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ env:
3636
-Xms6g
3737
-Xmx6g
3838
-Dorg.slf4j.simpleLogger.defaultLogLevel=WARN
39+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3940

4041
jobs:
4142
validate:

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ env:
2828
-Xms6g
2929
-Xmx6g
3030
-Dorg.slf4j.simpleLogger.defaultLogLevel=WARN
31+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3132

3233
permissions:
3334
contents: read

.github/workflows/docker-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ env:
9191
-pl nifi-docker/dockermaven
9292
-pl nifi-registry/nifi-registry-docker-maven/dockermaven
9393
94+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
95+
9496
concurrency:
9597
group: ${{ github.workflow }}-${{ github.ref }}
9698
cancel-in-progress: true

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ env:
8282
-pl -:nifi-processor-bundle-archetype
8383
-pl -:nifi-service-bundle-archetype
8484
85+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
86+
8587
concurrency:
8688
group: ${{ github.workflow }}-${{ github.ref }}
8789
cancel-in-progress: true

.github/workflows/system-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ env:
6868
-pl :nifi-py4j-integration-tests
6969
-pl nifi-system-tests/nifi-system-test-suite
7070
-pl nifi-system-tests/nifi-stateless-system-test-suite
71+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
7172

7273
concurrency:
7374
group: ${{ github.workflow }}-${{ github.ref }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ nb-configuration.xml
2020
.java-version
2121
/nifi-nar-bundles/nifi-py4j-bundle/nifi-python-extension-api/src/main/python/dist/
2222
__pycache__
23-
.cursor/
23+
.cursor/
24+
25+
# Develocity
26+
.mvn/.develocity/

.mvn/develocity.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
21+
-->
22+
<develocity
23+
xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24+
xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd">
25+
<projectId>nifi</projectId>
26+
<server>
27+
<url>https://develocity.apache.org</url>
28+
</server>
29+
<buildScan>
30+
<backgroundBuildScanUpload>#{isFalse(env['GITHUB_ACTIONS'])}</backgroundBuildScanUpload>
31+
<publishing>
32+
<onlyIf>authenticated</onlyIf>
33+
</publishing>
34+
<obfuscation>
35+
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
36+
</obfuscation>
37+
</buildScan>
38+
<buildCache>
39+
<local>
40+
<enabled>#{isFalse(env['GITHUB_ACTIONS'])}</enabled>
41+
</local>
42+
<remote>
43+
<enabled>false</enabled>
44+
</remote>
45+
</buildCache>
46+
</develocity>

.mvn/extensions.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
21+
-->
22+
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23+
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
24+
<extension>
25+
<groupId>com.gradle</groupId>
26+
<artifactId>develocity-maven-extension</artifactId>
27+
<version>2.1</version>
28+
</extension>
29+
<extension>
30+
<groupId>com.gradle</groupId>
31+
<artifactId>common-custom-user-data-maven-extension</artifactId>
32+
<version>2.0.5</version>
33+
</extension>
34+
</extensions>

0 commit comments

Comments
 (0)