Skip to content

Commit 2fec41b

Browse files
s15rlangecode
authored andcommitted
fix hard coded default outputFilename (#38)
1 parent 218b264 commit 2fec41b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/io/openapitools/swagger/GenerateMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
132132
File outputFile = new File(outputDirectory, outputFilename + "." + format.name().toLowerCase());
133133
format.write(swagger, outputFile, prettyPrint);
134134
if (attachSwaggerArtifact) {
135-
projectHelper.attachArtifact(project, format.name().toLowerCase(), "swagger", outputFile);
135+
projectHelper.attachArtifact(project, format.name().toLowerCase(), outputFilename, outputFile);
136136
}
137137
} catch (IOException e) {
138138
throw new RuntimeException("Unable write " + outputFilename + " document", e);

0 commit comments

Comments
 (0)