compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Sources artifacts missing from Gradle module metadata

Open tadfisher opened this issue 4 years ago • 1 comments

The androidx.compose.* artifacts are published to Google's Maven repository with a sourcesElements variant included in the Gradle module metadata (example).

The org.jetbrains.compose.* artifacts are published with no sourcesElements variant (example). This impacts me as I rely on the metadata to pin artifacts for reproducible builds and to create an offline repository for development, which makes it difficult to fetch the -sources artifacts as the file hashes are not published in the module metadata, meaning I would have to write a separate script to prefetch those hashes.

The androidx build has an example of manually creating the sourcesElements variants (which you get for free with Gradle's java.withSourcesJar()).

Looks like a corresponding feature request was filed for the Kotlin Gradle plugin here: https://youtrack.jetbrains.com/issue/KT-36943

tadfisher avatar Jun 23 '21 02:06 tadfisher

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Aug 26 '24 17:08 okushnikov