Simplify Gradle config - #3612
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3612 +/- ##
=========================================
Coverage 77.52% 77.52%
Complexity 2837 2837
=========================================
Files 464 464
Lines 8783 8783
Branches 1721 1721
=========================================
Hits 6809 6809
Misses 1047 1047
Partials 927 927 Continue to review full report at Codecov.
|
I don't think so. IIRC the javadoc jars are only created to satisfy a Maven Central requirement to provide them on upload, even if they're empty. The public Kotlin API is documented on the detekt website and since this is a Kotlin-only project I don't think it makes sense to publish Javadoc which would cover the Java flavour of the API. |
Uses withJavadocJar and withSourcesJar which are functionally equivalent to the config that was removed.
The new config also avoids configuring the javadoc/sourcesjar tasks during Gradle's configuration phase.
Tested by publishing to mavenLocal on my machine. The javadoc jars are empty anyway with the current config, and sources are published as expected.