Repository on search.maven.org has empty sources and javadoc files
sluedecke opened this issue · 3 comments
Check for version 1.3 here:
http://search.maven.org/#artifactdetails|com.cocosw|undobar|1.3|jar
Sizes of sources and javadoc are just some bytes.
It would be great to have recent sources and javadoc available, too.
I have upgrade the build.gradle, and the file in maven repository should be fine soon.
But I didn't find the way to generate javadoc in gradle. If you could help to correct this, that would be great.
I am not sure if this is the best solution, but it works for one of my projects:
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.java.srcDirs
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
I have upgrade the build.gradle, and the file in maven repository should be fine soon.
But I didn't find the way to generate javadoc in gradle. If you could help to correct this, that
would be great.
—Reply to this email directly or view it on GitHub[1].[2]
[1] #27 (comment)
[2]
https://github.com/notifications/beacon/7710530__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29u
IiwiZXhwaXJlcyI6MTcyNDQ4NjAxOCwiZGF0YSI6eyJpZCI6Mzg0Mjg1NTR9fQ==--45a45705fe3
6e256de60e0ee6f40c84c07b9521d.gif
Your code seems not working for me, and I find another way to create javadoc. It will be available in next release.