Closed 0xnm closed 1 year ago
Merging #137 (188ec23) into release/1.6.0 (0810fa9) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## release/1.6.0 #137 +/- ##
================================================
Coverage 86.25% 86.25%
Complexity 174 174
================================================
Files 21 21
Lines 560 560
Branches 72 72
================================================
Hits 483 483
Misses 49 49
Partials 28 28
What does this PR do?
This change fixes publishing (I hope) which was broken as the result of the
com.gradle.plugin-publish
plugin version bump to1.1.0
. This new version auto-configures both signing and publishing (and this cannot be disabled).So errors which were happening are:
This was happening because
com.gradle.plugin-publish
does signing auto-configuration in theafterEvaluate
and itsafterEvaluate
was executing earlier than we do signing configuration, so I moved signing configuration out ofafterEvaluate
.This was happening because auto-configuration also adds
javadoc
andsources
jars, so I have to remove such definitions from our code. The only thing is that whilesources
is generated correctly with Kotlin classes,javadoc
is only checking Java files (sojavadoc
jar is essentially empty). So to have a properjavadoc
jar I had to override defaultjavadocJar
task so that it looks for the Dokka generated files.Publishing at least to the Maven local works fine after these changes.
Review checklist (to be filled by reviewers)