# Generate Javadoc Jar

**URL:** <https://discuss.gradle.org/t/generate-javadoc-jar/31997>\
**Category:** Help/Discuss\
**Created:** [June 4, 2019, 8:23pm UTC](https://discuss.gradle.org/t/generate-javadoc-jar/31997 "2019-06-04T20:23:29Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![lingocoder](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/lingocoder/32/7650_2.png) [@lingocoder](https://discuss.gradle.org/u/lingocoder)\
**Post date:** [September 17, 2019, 10:37pm UTC](https://discuss.gradle.org/t/generate-javadoc-jar/31997/7 "2019-09-17T22:37:57Z")

</div>

> [@ziluckmichael](#):
>
> …_For the more recent versions of Gradle, should I instead do this:  
> `archiveClassifier.set("javadoc")` rather than this: `classifier = "javadoc"` ?_…

According to [_this_](http://bit.ly/ljacometIfier)…

> [@Publishing Jars with Classifiers after v5.0](https://discuss.gradle.org/t/publishing-jars-with-classifiers-after-v5-0/30144/5):
>
> _For the Kotlin DSL, you have to do: `archiveClassifier.set("sources")`_
> 
> _There is no DSL sugar that allows to use the = for assigning a value to the property._
> 
> _That limitation is due to a language level Kotlin limitation from what I can recall._

…and [_this_](http://bit.ly/RchivClsfyr), I believe you’ve absolutley nailed it, @ziluckmichael.

Although @ljacomet mentions „_the Kotlin DSL_“, it’s the same method in the Groovy DSL. I assume by him saying „_DSL sugar_“, that he’s also implying that it would be possible in the Groovy DSL to also do _`archiveClassifier = 'javadoc'`_.

Now then. Can you help me out [_on that request for functionality review_](https://bit.ly/mrJarNtro). You know? I scratch your back? You scratch mine? 😉

---

_[View the full topic](https://discuss.gradle.org/t/generate-javadoc-jar/31997)._
