Skip to content

Commit ab52b6d

Browse files
committed
Rename to align with Gradle Enterprise's Develocity rebranding
Closes gh-82
1 parent fa2879f commit ab52b6d

File tree

51 files changed

+132
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+132
-143
lines changed

.github/workflows/build-and-deploy-snapshot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
group: ${{ github.workflow }}-${{ github.ref }}
88
jobs:
99
build:
10-
if: ${{ github.repository == 'spring-io/gradle-enterprise-conventions' }}
10+
if: ${{ github.repository == 'spring-io/develocity-conventions' }}
1111
name: Build and deploy snapshot
1212
runs-on: ubuntu-latest
1313
steps:
@@ -35,7 +35,7 @@ jobs:
3535
uri: 'https://repo.spring.io'
3636
username: ${{ secrets.ARTIFACTORY_USERNAME }}
3737
password: ${{ secrets.ARTIFACTORY_PASSWORD }}
38-
build-name: gradle-enterprise-conventions
38+
build-name: develocity-conventions
3939
repository: 'libs-snapshot-local'
4040
folder: 'deployment-repository'
4141
signing-key: ${{ secrets.GPG_PRIVATE_KEY }}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
outputs:
1919
version: ${{ steps.version-from-tag.outputs.version }}
2020
build-and-stage-release:
21-
if: ${{ github.repository == 'spring-io/gradle-enterprise-conventions' }}
21+
if: ${{ github.repository == 'spring-io/develocity-conventions' }}
2222
name: Build and stage release
2323
needs: get-version
2424
runs-on: ubuntu-latest
@@ -47,7 +47,7 @@ jobs:
4747
uri: 'https://repo.spring.io'
4848
username: ${{ secrets.ARTIFACTORY_USERNAME }}
4949
password: ${{ secrets.ARTIFACTORY_PASSWORD }}
50-
build-name: ${{ format('gradle-enterprise-conventions-{0}', needs.get-version.outputs.version)}}
50+
build-name: ${{ format('develocity-conventions-{0}', needs.get-version.outputs.version)}}
5151
repository: 'libs-staging-local'
5252
folder: 'deployment-repository'
5353
signing-key: ${{ secrets.GPG_PRIVATE_KEY }}
@@ -66,7 +66,7 @@ jobs:
6666
env:
6767
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
6868
- name: Download release artifacts
69-
run: jf rt download --spec .github/release-artifacts.spec --spec-vars 'buildName=${{ format('gradle-enterprise-conventions-{0}', needs.get-version.outputs.version) }};buildNumber=${{ github.run_number }}'
69+
run: jf rt download --spec .github/release-artifacts.spec --spec-vars 'buildName=${{ format('develocity-conventions-{0}', needs.get-version.outputs.version) }};buildNumber=${{ github.run_number }}'
7070
- name: Sync
7171
uses: spring-io/nexus-sync-action@42477a2230a2f694f9eaa4643fa9e76b99b7ab84 # v0.0.1
7272
with:
@@ -91,7 +91,7 @@ jobs:
9191
env:
9292
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
9393
- name: Promote build
94-
run: jfrog rt build-promote ${{ format('gradle-enterprise-conventions-{0}', needs.get-version.outputs.version)}} ${{ github.run_number }} libs-release-local
94+
run: jfrog rt build-promote ${{ format('develocity-conventions-{0}', needs.get-version.outputs.version)}} ${{ github.run_number }} libs-release-local
9595
create-github-release:
9696
name: Create GitHub release
9797
needs:

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Contributing to Gradle Enterprise Conventions Plugin
1+
# Contributing to Develocity Conventions Plugin
22

3-
Gradle Enterprise Conventions Plugin is released under the Apache 2.0 license.
3+
Develocity Conventions Plugin is released under the Apache 2.0 license.
44
If you would like to contribute something, or simply want to work with the code, this document should help you to get started.
55

66
## Code of conduct

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Gradle Enterprise Conventions
1+
# Develocity Conventions
22

3-
Conventions for Maven and 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 Develocity instance hosted at [ge.spring.io](https://ge.spring.io).
44

55
## Build cache conventions
66

@@ -120,7 +120,7 @@ Now apply the plugin in `settings.gradle`, alongside the `com.gradle.develocity`
120120
plugins {
121121
// …
122122
id "com.gradle.develocity" version "<<version>>"
123-
id "io.spring.ge.conventions" version "<<version>>"
123+
id "io.spring.develocity.conventions" version "<<version>>"
124124
// …
125125
}
126126
```
@@ -133,8 +133,8 @@ To use the conventions, create a `.mvn/extensions.xml` file in the root of the p
133133
<?xml version="1.0" encoding="UTF-8"?>
134134
<extensions>
135135
<extension>
136-
<groupId>io.spring.ge.conventions</groupId>
137-
<artifactId>gradle-enterprise-conventions-maven-extension</artifactId>
136+
<groupId>io.spring.develocity.conventions</groupId>
137+
<artifactId>develocity-conventions-maven-extension</artifactId>
138138
<version><<version>></version>
139139
</extension>
140140
</extensions>

gradle-enterprise-conventions-core/build.gradle renamed to develocity-conventions-core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id "maven-publish"
55
}
66

7-
description = "Gradle Enterprise Conventions Core"
7+
description = "Develocity Conventions Core"
88

99
repositories {
1010
mavenCentral()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.core;
17+
package io.spring.develocity.conventions.core;
1818

1919
import java.util.Map;
2020

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.core;
17+
package io.spring.develocity.conventions.core;
1818

1919
import java.io.ByteArrayOutputStream;
2020
import java.io.UnsupportedEncodingException;
@@ -23,7 +23,7 @@
2323
import java.util.function.Consumer;
2424
import java.util.stream.Collectors;
2525

26-
import io.spring.ge.conventions.core.ProcessRunner.RunFailedException;
26+
import io.spring.develocity.conventions.core.ProcessRunner.RunFailedException;
2727

2828
/**
2929
* Conventions that are applied to build scans for Maven and Gradle builds. Spring
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.core;
17+
package io.spring.develocity.conventions.core;
1818

1919
import java.util.function.Consumer;
2020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.core;
17+
package io.spring.develocity.conventions.core;
1818

1919
import java.net.InetAddress;
2020
import java.util.List;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.core;
17+
package io.spring.develocity.conventions.core;
1818

1919
/**
2020
* Configuration for Develocity.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.core;
17+
package io.spring.develocity.conventions.core;
1818

1919
import java.util.Map;
2020
import java.util.function.Function;

gradle-enterprise-conventions-core/src/main/java/io/spring/ge/conventions/core/ProcessRunner.java renamed to develocity-conventions-core/src/main/java/io/spring/develocity/conventions/core/ProcessRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.core;
17+
package io.spring.develocity.conventions.core;
1818

1919
import java.io.OutputStream;
2020
import java.util.function.Consumer;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
*/
1616

1717
/**
18-
* Gradle Enterprise conventions for Spring projects built with Gradle.
18+
* Core classes for the Develocity conventions for Spring projects.
1919
*/
20-
package io.spring.ge.conventions.gradle;
20+
package io.spring.develocity.conventions.core;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.core;
17+
package io.spring.develocity.conventions.core;
1818

1919
import java.util.Collections;
2020
import java.util.HashMap;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.core;
17+
package io.spring.develocity.conventions.core;
1818

1919
import java.net.InetAddress;
2020
import java.net.UnknownHostException;
@@ -27,7 +27,7 @@
2727
import java.util.function.Consumer;
2828
import java.util.function.Function;
2929

30-
import io.spring.ge.conventions.core.ConfigurableBuildScan.ObfuscationConfigurer;
30+
import io.spring.develocity.conventions.core.ConfigurableBuildScan.ObfuscationConfigurer;
3131
import org.junit.jupiter.api.Test;
3232

3333
import static org.assertj.core.api.Assertions.assertThat;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.core;
17+
package io.spring.develocity.conventions.core;
1818

1919
import java.io.IOException;
2020
import java.io.OutputStream;
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
plugins {
2+
id "build-conventions"
3+
id "java-gradle-plugin"
4+
id "maven-publish"
5+
}
6+
7+
description = "Develocity Conventions Gradle plugin"
8+
9+
repositories {
10+
mavenCentral()
11+
gradlePluginPortal()
12+
}
13+
14+
dependencies {
15+
compileOnly("com.gradle:develocity-gradle-plugin:${develocityPluginVersion}")
16+
17+
implementation(project(":develocity-conventions-core"))
18+
19+
testImplementation("com.gradle:develocity-gradle-plugin:${develocityPluginVersion}")
20+
testImplementation("org.assertj:assertj-core:3.24.2")
21+
testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
22+
testImplementation("org.mockito:mockito-core:4.11.0")
23+
}
24+
25+
gradlePlugin {
26+
plugins {
27+
develocityConventionsPlugin {
28+
displayName = project.description
29+
description = project.description
30+
id = 'io.spring.develocity.conventions'
31+
implementationClass = 'io.spring.develocity.conventions.gradle.DevelocityConventionsPlugin'
32+
}
33+
}
34+
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.gradle;
17+
package io.spring.develocity.conventions.gradle;
1818

1919
import java.util.Map;
2020

21-
import io.spring.ge.conventions.core.BuildScanConventions;
22-
import io.spring.ge.conventions.core.ConfigurableBuildScan;
23-
import io.spring.ge.conventions.core.ConfigurableDevelocity;
24-
import io.spring.ge.conventions.core.ProcessRunner;
21+
import io.spring.develocity.conventions.core.BuildScanConventions;
22+
import io.spring.develocity.conventions.core.ConfigurableBuildScan;
23+
import io.spring.develocity.conventions.core.ConfigurableDevelocity;
24+
import io.spring.develocity.conventions.core.ProcessRunner;
2525

2626
/**
2727
* Conventions for build scans that are published anonymously to
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.gradle;
17+
package io.spring.develocity.conventions.gradle;
1818

1919
import java.io.File;
2020

@@ -23,25 +23,25 @@
2323
import com.gradle.develocity.agent.gradle.DevelocityConfiguration;
2424
import com.gradle.develocity.agent.gradle.DevelocityPlugin;
2525
import com.gradle.develocity.agent.gradle.scan.BuildScanConfiguration;
26-
import io.spring.ge.conventions.core.BuildCacheConventions;
27-
import io.spring.ge.conventions.core.BuildScanConventions;
26+
import io.spring.develocity.conventions.core.BuildCacheConventions;
27+
import io.spring.develocity.conventions.core.BuildScanConventions;
2828
import org.gradle.StartParameter;
2929
import org.gradle.api.Plugin;
3030
import org.gradle.api.initialization.Settings;
3131
import org.gradle.api.internal.ProcessOperations;
3232

3333
/**
34-
* {@link Plugin plugin} for configuring the use of Gradle Enterprise hosted at
34+
* {@link Plugin plugin} for configuring the use of Develocity hosted at
3535
* <a href="https://ge.spring.io">ge.spring.io</a>.
3636
*
3737
* @author Andy Wilkinson
3838
*/
39-
public class GradleEnterpriseConventionsPlugin implements Plugin<Settings> {
39+
public class DevelocityConventionsPlugin implements Plugin<Settings> {
4040

4141
private final ProcessOperations processOperations;
4242

4343
@Inject
44-
public GradleEnterpriseConventionsPlugin(ProcessOperations processOperations) {
44+
public DevelocityConventionsPlugin(ProcessOperations processOperations) {
4545
this.processOperations = processOperations;
4646
}
4747

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.gradle;
17+
package io.spring.develocity.conventions.gradle;
1818

1919
import java.util.function.Consumer;
2020

2121
import com.gradle.develocity.agent.gradle.buildcache.DevelocityBuildCache;
22-
import io.spring.ge.conventions.core.ConfigurableBuildCache;
22+
import io.spring.develocity.conventions.core.ConfigurableBuildCache;
2323
import org.gradle.caching.configuration.BuildCacheConfiguration;
2424
import org.gradle.caching.local.DirectoryBuildCache;
2525

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.gradle;
17+
package io.spring.develocity.conventions.gradle;
1818

1919
import java.net.InetAddress;
2020
import java.util.List;
@@ -24,7 +24,7 @@
2424
import com.gradle.develocity.agent.gradle.scan.BuildScanConfiguration;
2525
import com.gradle.develocity.agent.gradle.scan.BuildScanDataObfuscationConfiguration;
2626
import com.gradle.develocity.agent.gradle.scan.BuildScanPublishingConfiguration.PublishingContext;
27-
import io.spring.ge.conventions.core.ConfigurableBuildScan;
27+
import io.spring.develocity.conventions.core.ConfigurableBuildScan;
2828

2929
/**
3030
* A {@link ConfigurableBuildScan} for Gradle builds.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.gradle;
17+
package io.spring.develocity.conventions.gradle;
1818

1919
import com.gradle.develocity.agent.gradle.DevelocityConfiguration;
20-
import io.spring.ge.conventions.core.ConfigurableDevelocity;
20+
import io.spring.develocity.conventions.core.ConfigurableDevelocity;
2121

2222
/**
2323
* {@link ConfigurableDevelocity} implementation for Gradle builds.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.gradle;
17+
package io.spring.develocity.conventions.gradle;
1818

1919
import java.io.OutputStream;
2020
import java.util.function.Consumer;
2121

22-
import io.spring.ge.conventions.core.ProcessRunner;
22+
import io.spring.develocity.conventions.core.ProcessRunner;
2323
import org.gradle.api.internal.ProcessOperations;
2424
import org.gradle.process.ExecSpec;
2525

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package io.spring.ge.conventions.gradle;
17+
package io.spring.develocity.conventions.gradle;
1818

1919
import java.io.File;
2020

gradle-enterprise-conventions-core/src/main/java/io/spring/ge/conventions/core/package-info.java renamed to develocity-conventions-gradle-plugin/src/main/java/io/spring/develocity/conventions/gradle/package-info.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
*/
1616

1717
/**
18-
* Core classes for the Gradle Enterprise conventions for Spring projects.
18+
* Develocity conventions for Spring projects built with Gradle.
1919
*/
20-
package io.spring.ge.conventions.core;
20+
package io.spring.develocity.conventions.gradle;

0 commit comments

Comments
 (0)