Skip to content

Commit

Permalink
chore: no need for enterprise package to be configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
slandelle committed Jan 30, 2024
1 parent a1656eb commit ba0cd4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/main/java/io/gatling/mojo/AbstractEnterpriseMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public abstract class AbstractEnterpriseMojo extends AbstractGatlingMojo {
/**
* The classifier used for the JAR file when packaging simulations to run on Gatling Enterprise.
*/
@Parameter(defaultValue = "shaded")
protected String shadedClassifier;
protected static final String SHADED_CLASSIFIER = "shaded";

@Parameter(defaultValue = "${project.build.directory}", readonly = true)
protected File targetPath;
Expand All @@ -36,7 +35,7 @@ protected File enterprisePackage() {
+ "-"
+ mavenProject.getVersion()
+ "-"
+ shadedClassifier
+ SHADED_CLASSIFIER
+ ".jar";
return new File(targetPath.getAbsolutePath(), name);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/gatling/mojo/EnterprisePackageMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
ZipUtil.pack(workingDir, shaded);

// attach jar so it can be deployed
projectHelper.attachArtifact(mavenProject, "jar", shadedClassifier, shaded);
projectHelper.attachArtifact(mavenProject, "jar", SHADED_CLASSIFIER, shaded);

try {
FileUtilsV2_2.deleteDirectory(workingDir);
Expand Down

0 comments on commit ba0cd4a

Please sign in to comment.