Skip to content

Commit

Permalink
Merge pull request #142 from mpilquist/docjar-classifier
Browse files Browse the repository at this point in the history
Allow customization of classifier of scaladoc jar
  • Loading branch information
davidB committed Jan 6, 2014
2 parents 859ee68 + 522f929 commit 0fc3d74
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/scala_maven/ScalaDocJarMojo.java
Expand Up @@ -53,7 +53,12 @@ public class ScalaDocJarMojo extends ScalaDocMojo {
* @parameter expression="${attach}" default-value="true"
*/
private boolean attach;

/**
* Specifies the classifier of the generated artifact.
*
* @parameter expression="${classifier}" default-value="javadoc"
*/
private String classifier;
/**
* Specifies whether to skip generating scaladoc.
* <br/>
Expand Down Expand Up @@ -178,7 +183,7 @@ private File generateArchive( File javadocFiles, String jarFileName ) throws Arc
}

protected String getClassifier() {
return "javadoc";
return classifier;
}

protected void failOnError(String prefix, Exception e)
Expand Down

0 comments on commit 0fc3d74

Please sign in to comment.