diff --git a/README.adoc b/README.adoc
index eba8c55..91030aa 100644
--- a/README.adoc
+++ b/README.adoc
@@ -15,7 +15,7 @@ image::build-scan-links.png[Build Scan Links,{thumbnail}]
== Installation
-The plugin is available via https://marketplace.atlassian.com/apps/1230500/gradle-enterprise-plugin-for-bamboo[Atlassian Marketplace].
+The plugin is available via https://marketplace.atlassian.com/apps/1230500/develocity-plugin-for-bamboo[Atlassian Marketplace].
It is also possible to install the plugin manually as mentioned in https://confluence.atlassian.com/bamboo/installing-a-plugin-289277265.html[Uploading your own plugin] section. The released JARs can be found in the Releases.
Once the plugin is installed, the Bamboo Administration page will have a new section available under the “Managed Apps” group named Develocity integration.
diff --git a/pom.xml b/pom.xml
index 3cdb0fb..6366a71 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,8 +4,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
- com.gradle.enterprise
- gradle-enterprise-bamboo-plugin
+ com.gradle.develocity
+ develocity-bamboo-plugin
2.0.0-SNAPSHOT
atlassian-plugin
diff --git a/src/main/java/com/gradle/develocity/bamboo/admin/BuildScansConfigAction.java b/src/main/java/com/gradle/develocity/bamboo/admin/BuildScansConfigAction.java
index 609065b..6964ff0 100644
--- a/src/main/java/com/gradle/develocity/bamboo/admin/BuildScansConfigAction.java
+++ b/src/main/java/com/gradle/develocity/bamboo/admin/BuildScansConfigAction.java
@@ -44,7 +44,7 @@ public String input() {
server = config.getServer();
allowUntrustedServer = config.isAllowUntrustedServer();
sharedCredentialName = config.getSharedCredentialName();
- develocityPluginVersion = config.getGePluginVersion();
+ develocityPluginVersion = config.getDevelocityPluginVersion();
ccudPluginVersion = config.getCcudPluginVersion();
pluginRepository = config.getPluginRepository();
injectMavenExtension = config.isInjectMavenExtension();
@@ -113,7 +113,7 @@ public String save() {
.setAllowUntrustedServer(allowUntrustedServer)
.setSharedCredentialName(sharedCredentialName)
.setPluginRepository(pluginRepository)
- .setGePluginVersion(develocityPluginVersion)
+ .setDevelocityPluginVersion(develocityPluginVersion)
.setCcudPluginVersion(ccudPluginVersion)
.setInjectMavenExtension(injectMavenExtension)
.setInjectCcudExtension(injectCcudExtension));
diff --git a/src/main/java/com/gradle/develocity/bamboo/config/ConfigurationMigrator.java b/src/main/java/com/gradle/develocity/bamboo/config/ConfigurationMigrator.java
index eba8070..061b2d5 100644
--- a/src/main/java/com/gradle/develocity/bamboo/config/ConfigurationMigrator.java
+++ b/src/main/java/com/gradle/develocity/bamboo/config/ConfigurationMigrator.java
@@ -17,7 +17,7 @@
public class ConfigurationMigrator {
private static final Logger LOGGER = LoggerFactory.getLogger(ConfigurationMigrator.class);
- private static final String DEVELOCITY_BAMBOO_PLUGIN_KEY = "com.gradle.enterprise.gradle-enterprise-bamboo-plugin";
+ private static final String DEVELOCITY_BAMBOO_PLUGIN_KEY = "com.gradle.develocity.develocity-bamboo-plugin";
private final BandanaManager bandanaManager;
@Autowired
diff --git a/src/main/java/com/gradle/develocity/bamboo/config/GradleConfiguration.java b/src/main/java/com/gradle/develocity/bamboo/config/GradleConfiguration.java
index 3d1702a..119905d 100644
--- a/src/main/java/com/gradle/develocity/bamboo/config/GradleConfiguration.java
+++ b/src/main/java/com/gradle/develocity/bamboo/config/GradleConfiguration.java
@@ -28,7 +28,7 @@ public static GradleConfiguration of(PersistentConfiguration configuration) {
configuration.getServer(),
configuration.isAllowUntrustedServer(),
configuration.getSharedCredentialName(),
- configuration.getGePluginVersion(),
+ configuration.getDevelocityPluginVersion(),
configuration.getCcudPluginVersion(),
configuration.getPluginRepository());
}
diff --git a/src/main/java/com/gradle/develocity/bamboo/config/PersistentConfiguration.java b/src/main/java/com/gradle/develocity/bamboo/config/PersistentConfiguration.java
index 5df90aa..2c71d7c 100644
--- a/src/main/java/com/gradle/develocity/bamboo/config/PersistentConfiguration.java
+++ b/src/main/java/com/gradle/develocity/bamboo/config/PersistentConfiguration.java
@@ -15,7 +15,7 @@ public class PersistentConfiguration {
private String sharedCredentialName;
@Nullable
- private String gePluginVersion;
+ private String develocityPluginVersion;
@Nullable
private String ccudPluginVersion;
@Nullable
@@ -54,12 +54,12 @@ public PersistentConfiguration setSharedCredentialName(@Nullable String sharedCr
}
@Nullable
- public String getGePluginVersion() {
- return gePluginVersion;
+ public String getDevelocityPluginVersion() {
+ return develocityPluginVersion;
}
- public PersistentConfiguration setGePluginVersion(String gePluginVersion) {
- this.gePluginVersion = StringUtils.trimToNull(gePluginVersion);
+ public PersistentConfiguration setDevelocityPluginVersion(String develocityPluginVersion) {
+ this.develocityPluginVersion = StringUtils.trimToNull(develocityPluginVersion);
return this;
}
@@ -107,7 +107,7 @@ public String toString() {
.append("server", server)
.append("allowUntrustedServer", allowUntrustedServer)
.append("sharedCredentialName", sharedCredentialName)
- .append("gePluginVersion", gePluginVersion)
+ .append("develocityPluginVersion", develocityPluginVersion)
.append("ccudPluginVersion", ccudPluginVersion)
.append("pluginRepository", pluginRepository)
.append("injectMavenExtension", injectMavenExtension)
@@ -124,14 +124,14 @@ public boolean equals(Object o) {
injectMavenExtension == that.injectMavenExtension &&
injectCcudExtension == that.injectCcudExtension && Objects.equals(server, that.server) &&
Objects.equals(sharedCredentialName, that.sharedCredentialName) &&
- Objects.equals(gePluginVersion, that.gePluginVersion) &&
+ Objects.equals(develocityPluginVersion, that.develocityPluginVersion) &&
Objects.equals(ccudPluginVersion, that.ccudPluginVersion) &&
Objects.equals(pluginRepository, that.pluginRepository);
}
@Override
public int hashCode() {
- return Objects.hash(server, allowUntrustedServer, sharedCredentialName, gePluginVersion, ccudPluginVersion,
+ return Objects.hash(server, allowUntrustedServer, sharedCredentialName, develocityPluginVersion, ccudPluginVersion,
pluginRepository, injectMavenExtension, injectCcudExtension);
}
}
diff --git a/src/main/java/com/gradle/develocity/bamboo/config/PersistentConfigurationManager.java b/src/main/java/com/gradle/develocity/bamboo/config/PersistentConfigurationManager.java
index e2bd025..c4c0005 100644
--- a/src/main/java/com/gradle/develocity/bamboo/config/PersistentConfigurationManager.java
+++ b/src/main/java/com/gradle/develocity/bamboo/config/PersistentConfigurationManager.java
@@ -13,8 +13,8 @@
@Component
public class PersistentConfigurationManager {
- static final String CONFIG_V0_KEY = "com.gradle.bamboo.plugins.ge.config";
- static final String CONFIG_V1_KEY = "com.gradle.bamboo.plugins.ge.config.v1";
+ static final String CONFIG_V0_KEY = "com.gradle.bamboo.plugins.develocity.config";
+ static final String CONFIG_V1_KEY = "com.gradle.bamboo.plugins.develocity.config.v1";
static final String CURRENT_CONFIG_KEY = CONFIG_V1_KEY;
private final BandanaManager bandanaManager;
diff --git a/src/test/java/com/gradle/develocity/bamboo/DevelocityPreJobActionTest.java b/src/test/java/com/gradle/develocity/bamboo/DevelocityPreJobActionTest.java
index ca2d237..e534f5e 100644
--- a/src/test/java/com/gradle/develocity/bamboo/DevelocityPreJobActionTest.java
+++ b/src/test/java/com/gradle/develocity/bamboo/DevelocityPreJobActionTest.java
@@ -119,7 +119,7 @@ void doesNothingIfNoSupportedTasks() {
String credentialsName = RandomStringUtils.randomAlphanumeric(10);
when(bandanaManager.getValue(any(BandanaContext.class), anyString()))
.thenReturn("{\"server\":\"https://scans.gradle.com\",\"sharedCredentialName\":\"" + credentialsName + "\", " +
- "\"gePluginVersion\": \"3.12\"}");
+ "\"develocityPluginVersion\": \"3.12\"}");
when(credentialsAccessor.getCredentialsByName(credentialsName))
.thenReturn(credentialsData);
@@ -183,7 +183,7 @@ void addsAccessKeyToContext(String pluginKey) {
String credentialsName = RandomStringUtils.randomAlphanumeric(10);
when(bandanaManager.getValue(any(BandanaContext.class), anyString()))
.thenReturn("{\"server\":\"https://scans.gradle.com\",\"sharedCredentialName\":\"" + credentialsName + "\", " +
- "\"gePluginVersion\": \"3.12\"}");
+ "\"develocityPluginVersion\": \"3.12\"}");
when(credentialsAccessor.getCredentialsByName(credentialsName))
.thenReturn(credentialsData);
diff --git a/src/test/java/com/gradle/develocity/bamboo/config/ConfigurationMigratorTest.java b/src/test/java/com/gradle/develocity/bamboo/config/ConfigurationMigratorTest.java
index 8fb51b7..4eb196b 100644
--- a/src/test/java/com/gradle/develocity/bamboo/config/ConfigurationMigratorTest.java
+++ b/src/test/java/com/gradle/develocity/bamboo/config/ConfigurationMigratorTest.java
@@ -27,15 +27,15 @@ class ConfigurationMigratorTest {
@Test
void runsMigrateConfigV0ToV1() {
- setupPluginEnabledEventMock("com.gradle.enterprise.gradle-enterprise-bamboo-plugin");
- when(bandanaManager.getValue(any(BandanaContext.class), eq("com.gradle.bamboo.plugins.ge.config")))
+ setupPluginEnabledEventMock("com.gradle.develocity.develocity-bamboo-plugin");
+ when(bandanaManager.getValue(any(BandanaContext.class), eq("com.gradle.bamboo.plugins.develocity.config")))
.thenReturn(new PersistentConfiguration().setServer("https://mycomp"));
new ConfigurationMigrator(bandanaManager).onPluginEnabled(pluginEnabledEvent);
- verify(bandanaManager, times(1)).setValue(any(BandanaContext.class), eq("com.gradle.bamboo.plugins.ge.config.v1"),
- eq("{\"server\":\"https://mycomp\",\"allowUntrustedServer\":false,\"sharedCredentialName\":null,\"gePluginVersion\":null,\"ccudPluginVersion\":null,\"pluginRepository\":null,\"injectMavenExtension\":false,\"injectCcudExtension\":false}"));
- verify(bandanaManager, times(1)).removeValue(any(BandanaContext.class), eq("com.gradle.bamboo.plugins.ge.config"));
+ verify(bandanaManager, times(1)).setValue(any(BandanaContext.class), eq("com.gradle.bamboo.plugins.develocity.config.v1"),
+ eq("{\"server\":\"https://mycomp\",\"allowUntrustedServer\":false,\"sharedCredentialName\":null,\"develocityPluginVersion\":null,\"ccudPluginVersion\":null,\"pluginRepository\":null,\"injectMavenExtension\":false,\"injectCcudExtension\":false}"));
+ verify(bandanaManager, times(1)).removeValue(any(BandanaContext.class), eq("com.gradle.bamboo.plugins.develocity.config"));
}
@ParameterizedTest
@@ -53,8 +53,8 @@ void doesNotRunMigrateConfigV0ToV1(Object config, String eventKey) {
static Stream configAndEventProvider() {
return Stream.of(
- arguments(null, "com.gradle.enterprise.gradle-enterprise-bamboo-plugin"),
- arguments("not a Persistent Configuration object", "com.gradle.enterprise.gradle-enterprise-bamboo-plugin"),
+ arguments(null, "com.gradle.develocity.develocity-bamboo-plugin"),
+ arguments("not a Persistent Configuration object", "com.gradle.develocity.develocity-bamboo-plugin"),
arguments(new PersistentConfiguration(), "some.other.plugin")
);
}
diff --git a/src/test/java/com/gradle/develocity/bamboo/config/JsonConfigurationConverterTest.java b/src/test/java/com/gradle/develocity/bamboo/config/JsonConfigurationConverterTest.java
index 128b3ae..3ad4e7d 100644
--- a/src/test/java/com/gradle/develocity/bamboo/config/JsonConfigurationConverterTest.java
+++ b/src/test/java/com/gradle/develocity/bamboo/config/JsonConfigurationConverterTest.java
@@ -14,7 +14,7 @@ class JsonConfigurationConverterTest {
private static final PersistentConfiguration config = new PersistentConfiguration()
.setServer("https://mycompany.com")
- .setGePluginVersion("3.11")
+ .setDevelocityPluginVersion("3.11")
.setPluginRepository("https://plugins.mycompany.com")
.setSharedCredentialName("develocity-creds")
.setAllowUntrustedServer(true)
@@ -23,7 +23,7 @@ class JsonConfigurationConverterTest {
.setInjectMavenExtension(true);
private static final String json = "{\"server\":\"https://mycompany.com\",\"allowUntrustedServer\":true," +
- "\"sharedCredentialName\":\"develocity-creds\",\"gePluginVersion\":\"3.11\",\"ccudPluginVersion\":\"1.11\"," +
+ "\"sharedCredentialName\":\"develocity-creds\",\"develocityPluginVersion\":\"3.11\",\"ccudPluginVersion\":\"1.11\"," +
"\"pluginRepository\":\"https://plugins.mycompany.com\",\"injectMavenExtension\":true," +
"\"injectCcudExtension\":true}";