Skip to content

Commit 087063f

Browse files
committed
Add Maven extension to publish build scans to develocity.apache.org
1 parent 2e053aa commit 087063f

2 files changed

Lines changed: 81 additions & 0 deletions

File tree

.mvn/develocity.xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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>directory-server</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>true</enabled>
44+
<storeEnabled>#{isTrue(env['GITHUB_ACTIONS']) and isTrue(env['DEVELOCITY_ACCESS_KEY'])}</storeEnabled>
45+
</remote>
46+
</buildCache>
47+
</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.3.1</version>
28+
</extension>
29+
<extension>
30+
<groupId>com.gradle</groupId>
31+
<artifactId>common-custom-user-data-maven-extension</artifactId>
32+
<version>2.1.0</version>
33+
</extension>
34+
</extensions>

0 commit comments

Comments
 (0)