You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-2Lines changed: 25 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Gradle Enterprise Conventions
2
2
3
-
Conventions for Gradle projects that use the Gradle Enterprise instance hosted at [ge.spring.io](https://ge.spring.io).
3
+
Conventions for Maven and Gradle projects that use the Gradle Enterprise instance hosted at [ge.spring.io](https://ge.spring.io).
4
4
5
5
## Build cache conventions
6
6
@@ -26,7 +26,9 @@ When applied alongside the [Develocity Plugin](https://plugins.gradle.org/plugin
26
26
The build scans will be customized to:
27
27
28
28
- Add tags:
29
-
-`JDK-<version>`, where `<version>` is the value of the `toolchainVersion` project property or, when not set, the specification version of the JDK running the build.
29
+
-`JDK-<version>`.
30
+
When using Maven, `<version>` is the specification version of the JDK running the build.
31
+
When using Gradle, `<version>` is the value of the `toolchainVersion` project property or, when not set, it's the specification version of the JDK running the build.
30
32
-`CI` or `Local` depending on where the build is executing.
31
33
-`dirty` if the git working copy is dirty.
32
34
- Name of the git branch being built.
@@ -96,6 +98,8 @@ Jenkins is detected by looking for an environment variable named `JENKINS_URL`.
96
98
Releases of the conventions are published to Maven Central.
97
99
Snapshots are published to https://repo.spring.io/snapshot.
98
100
101
+
### Gradle
102
+
99
103
The first step in using the conventions is to make the necessary repository available for plugin resolution.
100
104
This is done by configuring a plugin management repository in `settings.gradle`, as shown in the following example:
101
105
@@ -120,3 +124,22 @@ plugins {
120
124
// …
121
125
}
122
126
```
127
+
128
+
### Maven
129
+
130
+
To use the conventions, create a `.mvn/extensions.xml` file in the root of the project:
0 commit comments