|
1 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> |
2 | 2 |
|
3 | | -<!-- Common gradle-enterprise.xml configuration for Maven shared between CI agents and developers building locally. |
| 3 | +<!-- Common develocity.xml configuration for Maven shared between CI agents and developers building locally. |
4 | 4 |
|
5 | 5 | The build cache credentials required for CI builds to write to the remote build cache are read from environment variables. |
6 | 6 | Possibly, the credentials are configured in Jenkins via Credentials plugin (https://plugins.jenkins.io/credentials/) and |
|
9 | 9 |
|
10 | 10 | Note: In the XML configuration below, you need to adjust |
11 | 11 |
|
12 | | - - the server url of your Gradle Enterprise server |
| 12 | + - the server url of your Develocity server |
13 | 13 | - the name of the environment variable that reveals the build is running in a CI environment |
14 | 14 | - the names of the environment variables holding the build cache credentials |
15 | 15 |
|
16 | 16 | to the specifics of your CI server settings. --> |
17 | 17 |
|
18 | | -<gradleEnterprise |
19 | | - xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
20 | | - xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd"> |
| 18 | +<develocity |
| 19 | + xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 20 | + xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd"> |
21 | 21 | <server> |
22 | | - <url>https://ge.openapi-generator.tech/</url> <!-- adjust to your GE server --> |
23 | | - <allowUntrusted>false</allowUntrusted> <!-- ensure a trusted certificate is configured --> |
| 22 | + <url>https://ge.openapi-generator.tech/</url> |
| 23 | + <allowUntrusted>false</allowUntrusted> |
24 | 24 | </server> |
25 | 25 | <buildScan> |
26 | | - <captureGoalInputFiles>true</captureGoalInputFiles> |
27 | 26 | <backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload> <!-- adjust to your CI provider --> |
28 | | - <publish>ALWAYS</publish> |
29 | | - <publishIfAuthenticated>true</publishIfAuthenticated> |
| 27 | + <publishing> |
| 28 | + <onlyIf>authenticated</onlyIf> |
| 29 | + </publishing> |
30 | 30 | <obfuscation> |
31 | 31 | <!-- Use a redacted value.--> |
32 | 32 | <ipAddresses>#{{'0.0.0.0'}}</ipAddresses> |
|
42 | 42 | <storeEnabled>#{isTrue(env['CI']) and isTrue(env['GRADLE_ENTERPRISE_ACCESS_KEY'])}</storeEnabled> |
43 | 43 | </remote> |
44 | 44 | </buildCache> |
45 | | -</gradleEnterprise> |
| 45 | +</develocity> |
0 commit comments