Skip to content

Commit

Permalink
feat: manage private packages, closes HYB-306
Browse files Browse the repository at this point in the history
  • Loading branch information
Obero committed Aug 2, 2023
1 parent e7d3e71 commit dd6620a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
<maven-surefire-plugin.version>3.1.0</maven-surefire-plugin.version>
<spotless-maven-plugin.version>2.30.0</spotless-maven-plugin.version>
<gatling-enterprise-plugin-commons.version>1.5.5</gatling-enterprise-plugin-commons.version>
<gatling-enterprise-plugin-commons.version>1.6.0</gatling-enterprise-plugin-commons.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ public abstract class AbstractEnterprisePluginMojo extends AbstractEnterpriseMoj
property = "gatling.enterprise.apiToken")
protected String apiToken;

@Parameter(
defaultValue = "${env.GATLING_PRIVATE_CONTROL_PLANE_URL}",
property = "gatling.enterprise.privateControlPlaneUrl")
protected URL privateControlPlaneUrl;

private final PluginLogger pluginLogger =
new PluginLogger() {
@Override
Expand Down Expand Up @@ -106,7 +111,8 @@ private EnterpriseClient initEnterpriseClient() throws MojoFailureException {
}

try {
return new HttpEnterpriseClient(enterpriseUrl, apiToken, pluginTitle, pluginVersion);
return new HttpEnterpriseClient(
enterpriseUrl, apiToken, pluginTitle, pluginVersion, privateControlPlaneUrl);
} catch (UnsupportedClientException e) {
throw new MojoFailureException(
"Please update the Gatling Maven plugin to the latest version for compatibility with Gatling Enterprise. See https://gatling.io/docs/gatling/reference/current/extensions/maven_plugin/ for more information about this plugin.",
Expand Down

0 comments on commit dd6620a

Please sign in to comment.