Skip to content

Commit

Permalink
migrate to gradle develocity maven extension
Browse files Browse the repository at this point in the history
  • Loading branch information
atomfrede committed May 24, 2024
1 parent fdb8fd0 commit 73b213d
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
cache: 'maven'
- name: Test with Maven
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
run: ./mvnw clean test --batch-mode
- name: Run Sonar analysis
if: github.repository == 'jhipster/jhipster-bom' && github.event_name == 'push'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,5 @@ node_modules
package-lock.json

.mvn/.gradle-enterprise/gradle-enterprise-workspace-id
.mvn/.develocity/develocity-workspace-id

30 changes: 30 additions & 0 deletions .mvn/develocity.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<develocity
xmlns="https://www.gradle.com/develocity-maven"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd"
>
<server>
<url>https://ge.jhipster.tech</url>
</server>
<buildScan>
<capture>
<fileFingerprints>true</fileFingerprints>
</capture>
<publishing>
<onlyIf>true</onlyIf>
</publishing>
<backgroundBuildScanUpload>#{env['CI'] == null}</backgroundBuildScanUpload>
<obfuscation>
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
</obfuscation>
</buildScan>
<buildCache>
<local>
<enabled>true</enabled>
</local>
<remote>
<enabled>true</enabled>
<storeEnabled>#{isTrue(env['GITHUB_ACTIONS']) and isTrue(env['GRADLE_ENTERPRISE_ACCESS_KEY'])}</storeEnabled>
</remote>
</buildCache>
</develocity>
22 changes: 11 additions & 11 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<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>2</version>
</extension>
</extensions>
<extension>
<groupId>com.gradle</groupId>
<artifactId>develocity-maven-extension</artifactId>
<version>1.21.4</version>
</extension>
<extension>
<groupId>com.gradle</groupId>
<artifactId>common-custom-user-data-maven-extension</artifactId>
<version>2.0</version>
</extension>
</extensions>
25 changes: 0 additions & 25 deletions .mvn/gradle-enterprise.xml

This file was deleted.

9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd https://www.gradle.com/develocity-maven-project https://www.gradle.com/schema/develocity-maven-project.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down Expand Up @@ -421,9 +422,9 @@
</plugin>
<plugin>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
<artifactId>develocity-maven-extension</artifactId>
<configuration>
<gradleEnterprise>
<develocity xmlns="https://www.gradle.com/develocity-maven-project">
<normalization>
<runtimeClassPath>
<propertiesNormalizations>
Expand Down Expand Up @@ -574,7 +575,7 @@
</executions>
</plugin>
</plugins>
</gradleEnterprise>
</develocity>

</configuration>
</plugin>
Expand Down

0 comments on commit 73b213d

Please sign in to comment.