Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support publications with grade metadata feature enabled #229
Gradle introduced gradle metadata feature in version 4.6 for which mostly used in native publications. It generate .module file for artifact which contains information about possible variants of artifact and configuration attributes for resolving. This file skipped by current version of plugin.
PR #230 realise metadata file publishing.
Workaround which works for us until the Bintray plugin catches up.
Note that we use Gradle Kotlin Script, so for Grovvy-based
__Motivation__ An issue in the current version of the Bintray plugin prevents it from uploading the Gradle module metadata file. __Modification__ Add the metadata files to the bintray task config. Note that a more involved workaround is proposed in , this PR sends a workaround that is purely file based. __Results__ Gradle module metadata are published.  bintray/gradle-bintray-plugin#229
__Motivation__ The recently introduced fix for Bintray plugin's Gradle module metadata issue is not working because the Bintray plugin copy task (`_bintrayRecordingCopy`) runs before the generation of the Gradle metadata (`generateMetadataFileForMavenJavaPublication`). This was not detected locally because the Gradle metadata was preexisting in an unclean build when `bintrayUpload` was tested. __Modifications__ - Use the workaround suggested in , - Review application of `maven-publish` plugin as it now must be done before Bintray. __Results__ Gradle module metadata files are uploaded to Bintray (hopefully
😅).  bintray/gradle-bintray-plugin#229