Skip to content

Commit 0aad32f

Browse files
committed
HV-2059 Add a simple Develocity extension configuration
to enable build scans ...
1 parent 0e052d9 commit 0aad32f

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,6 @@ maven-eclipse.xml
5454

5555
# Cache folders for formatting plugins:
5656
.cache
57+
58+
# develocity cache related:
59+
.mvn/.develocity

.mvn/develocity.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<develocity
2+
xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd">
4+
<server>
5+
<url>https://ge.hibernate.org</url>
6+
<allowUntrusted>false</allowUntrusted>
7+
</server>
8+
<buildScan>
9+
<!--
10+
Expression support is documented here: https://docs.gradle.com/enterprise/maven-extension/#expression_support
11+
-->
12+
<obfuscation>
13+
<!-- Don't share ip addresses-->
14+
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
15+
</obfuscation>
16+
<capture>
17+
<fileFingerprints>true</fileFingerprints>
18+
</capture>
19+
<!-- https://docs.gradle.com/enterprise/maven-extension/#manual_access_key_configuration -->
20+
<backgroundBuildScanUpload>#{env['CI'] == null}</backgroundBuildScanUpload>
21+
<tags>
22+
<tag>Hibernate Validator</tag>
23+
</tags>
24+
</buildScan>
25+
<buildCache>
26+
<local>
27+
<enabled>#{properties['no-build-cache'] == null}</enabled>
28+
</local>
29+
<remote>
30+
<enabled>#{properties['no-build-cache'] == null}</enabled>
31+
<storeEnabled>
32+
#{env['CI'] != null and (env['CHANGE_ID']?:'').isBlank() and (env['GITHUB_BASE_REF']?:'').isBlank() and !(env['DEVELOCITY_ACCESS_KEY']?:'').isBlank()}
33+
</storeEnabled>
34+
</remote>
35+
</buildCache>
36+
</develocity>

.mvn/extensions.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<extensions>
2+
<extension>
3+
<groupId>com.gradle</groupId>
4+
<artifactId>develocity-maven-extension</artifactId>
5+
<version>1.22.2</version>
6+
</extension>
7+
<extension>
8+
<groupId>com.gradle</groupId>
9+
<artifactId>common-custom-user-data-maven-extension</artifactId>
10+
<version>2.0.1</version>
11+
</extension>
12+
<extension>
13+
<groupId>org.hibernate.infra.develocity</groupId>
14+
<artifactId>hibernate-develocity-maven-extension</artifactId>
15+
<version>3.0.0.Final</version>
16+
</extension>
17+
</extensions>

0 commit comments

Comments
 (0)