Skip to content

Commit

Permalink
HSEARCH-5094 First iteration of the build cache support
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet authored and yrodiere committed Mar 1, 2024
1 parent 7824ef8 commit c6240af
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ nbactions.xml

# Cache folders for formatting plugins:
.cache

# Gradle Enterprise/Develocity
/.mvn/.gradle-enterprise
17 changes: 17 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<extensions>
<extension>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
<version>1.20.1</version>
</extension>
<extension>
<groupId>com.gradle</groupId>
<artifactId>common-custom-user-data-maven-extension</artifactId>
<version>1.12.5</version>
</extension>
<extension>
<groupId>org.hibernate.search.develocity</groupId>
<artifactId>hibernate-search-develocity-extension</artifactId>
<version>1.0.0.Final</version>
</extension>
</extensions>
38 changes: 38 additions & 0 deletions .mvn/gradle-enterprise.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<gradleEnterprise
xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
<server>
<url>https://ge.hibernate.org</url>
<allowUntrusted>false</allowUntrusted>
</server>
<buildScan>
<!-- adjust conditions ?
mvn gradle-enterprise:provision-access-key
https://docs.gradle.com/enterprise/maven-extension/#publishing_based_on_criteria
-->
<!-- build scan publication is configured in gradle-enterprise-custom-user-data.groovy
to leverage options to disable build scan publication for test builds
-->
<!--
Expression support is documented here: https://docs.gradle.com/enterprise/maven-extension/#expression_support
-->
<obfuscation>
<!-- Don't share ip addresses-->
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
</obfuscation>
<capture>
<goalInputFiles>true</goalInputFiles>
</capture>
<!-- https://docs.gradle.com/enterprise/maven-extension/#manual_access_key_configuration -->
<backgroundBuildScanUpload>#{env['CI'] == null}</backgroundBuildScanUpload>
</buildScan>
<buildCache>
<local>
<enabled>#{properties['no-build-cache'] == null}</enabled>
</local>
<remote>
<enabled>#{properties['no-build-cache'] == null}</enabled>
<storeEnabled>#{env['CI'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != ''}</storeEnabled>
</remote>
</buildCache>
</gradleEnterprise>

0 comments on commit c6240af

Please sign in to comment.