connect-kotlin icon indicating copy to clipboard operation
connect-kotlin copied to clipboard

Sources can't be downloaded by IDEA Android Studio / Intellij

Open jaredsburrows opened this issue 1 year ago • 0 comments

Background:

I see that this project is using https://github.com/vanniktech/gradle-maven-publish-plugin. This should publish sources.

I see that com.connectrpc:connect-kotlin-okhttp:0.6.1 is published on mavenCentral() here https://central.sonatype.com/artifact/com.connectrpc/connect-kotlin-okhttp.

I have checked https://search.maven.org/artifact/com.connectrpc/connect-kotlin-okhttp/0.6.1/jar and https://repo1.maven.org/maven2/com/connectrpc/connect-kotlin-okhttp/0.6.1/ and sources are published.

See this link https://repo1.maven.org/maven2/com/connectrpc/connect-kotlin-okhttp/0.6.1/connect-kotlin-okhttp-0.6.1-sources.jar.

Error / Repro:

When I try to use the IDE to manually download the sources I see the following error:

Task 'ijDownloadSources18f23d87-b7a' not found in root project 'android-gif-search' and its subprojects.

* Try:
> Run gradle tasks to get a list of available tasks.
> For more on name expansion, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:name_abbreviation in the Gradle documentation.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
BUILD FAILED in 163ms

or image:

Screenshot 2024-05-09 at 2 58 26 PM Screenshot 2024-05-09 at 2 58 07 PM

I see the same when stepping into the code for debugging and I click on "Download Source":

Screenshot 2024-05-09 at 2 59 57 PM Screenshot 2024-05-09 at 3 00 04 PM

Going forward:

Is this an IDE problem or the way the sources are being published?

jaredsburrows avatar May 09 '24 19:05 jaredsburrows