diff options
author | Ilpo Ruotsalainen <ilpo.ruotsalainen@oath.com> | 2018-12-18 13:19:41 +0100 |
---|---|---|
committer | Ilpo Ruotsalainen <ilpo.ruotsalainen@oath.com> | 2018-12-18 17:42:09 +0100 |
commit | f3758f795580e811f4c148c89264327b6fe77943 (patch) | |
tree | 0fd9f6bbdb894a609f9b19411b450022ea0e1522 /abi-check-plugin/src/main/java/com/yahoo/abicheck | |
parent | 20dd84fcab377efb131be33c30903d357fac9abe (diff) |
Improve check for project artifact type.
There are artifact types that are not "jar" in maven that still produce
a JAR file, allow those to be used.
Diffstat (limited to 'abi-check-plugin/src/main/java/com/yahoo/abicheck')
-rw-r--r-- | abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java b/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java index ca3966c3db2..e03f4798b2a 100644 --- a/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java +++ b/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java @@ -161,7 +161,7 @@ public class AbiCheck extends AbstractMojo { File specFile = new File(project.getBasedir(), specFileName); if (mainArtifact.getFile() == null) { throw new MojoExecutionException("Missing project artifact file"); - } else if (!mainArtifact.getType().equals("jar")) { + } else if (!mainArtifact.getFile().getName().endsWith(".jar")) { throw new MojoExecutionException("Project artifact is not a JAR"); } |