Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jaredsburrows opened this issue May 9, 2024 · 3 comments
Closed

Comments

@jaredsburrows
Copy link

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?

@srikrsna-buf
Copy link
Member

Hey! This seems like an IDE error, It is saying that ijDownloadSources18f23d87-b7a was not found, which seems to be a generated task.

@jhump
Copy link
Member

jhump commented Jun 21, 2024

Closing since this appears to be an IDE issue, not something with connect-kotlin.

@jhump jhump closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
@pkwarren
Copy link
Contributor

This might be related to vanniktech/gradle-maven-publish-plugin#759, which was just updated today in connect-kotlin. Hopefully the next build will resolve this issue for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants