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

[Bug]: gradle-plugin SNAPSHOT version not yet published #1620

Closed
2 tasks done
licaon-kter opened this issue Jan 10, 2024 · 5 comments
Closed
2 tasks done

[Bug]: gradle-plugin SNAPSHOT version not yet published #1620

licaon-kter opened this issue Jan 10, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@licaon-kter
Copy link

licaon-kter commented Jan 10, 2024

What happened?

Source code: https://gitlab.com/fdroid/fdroidclient

What version of AndroidIDE you're using?

F-Droid v2.7.0-beta (27003)

Relevant log output

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all files for configuration ':app:classpath'.
   > Cannot resolve external dependency com.itsaky.androidide:gradle-plugin:2.7.0-beta-9a9f65ca9-SNAPSHOT because no repositories are defined.
     Required by:
         project :app
> Plugin with id 'com.itsaky.androidide' not found.

...wants SNAPSHOT but that's not published: https://mvnrepository.com/artifact/com.itsaky.androidide/gradle-plugin

Duplicate issues

  • This issue has not been reported yet.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@licaon-kter licaon-kter added the bug Something isn't working label Jan 10, 2024
@itsaky
Copy link
Member

itsaky commented Jan 10, 2024

Thanks for the report. I'll fix it ASAP.

@itsaky
Copy link
Member

itsaky commented Jan 12, 2024

Update:
The issue seems to be occurring only for F-Droid builds. There was a configuration issue where the appropriate version name was not being used for the gradle plugin dependency for F-Droid builds. So, while the GitHub builds use the published versions, the F-Droid builds used the non-published, SNAPSHOT versions.

The above commit should fix the issue, but I still have to test those changes thoroughly.

itsaky added a commit that referenced this issue Jan 12, 2024
@MrIkso
Copy link
Contributor

MrIkso commented Jan 12, 2024

Close, I'm tested latest dev building. Working

@itsaky
Copy link
Member

itsaky commented Jan 14, 2024

Thanks for testing, @MrIkso.

I did test the changes on my own and can confirm that the issue has been resolved. There was another issue that I forgot to mention earlier which caused the build to fail when apply plugin: '...' syntax was used in Gradle build scripts. This issue has been resolved as well.

v2.7.1-beta will be released soon with the patch.

@itsaky itsaky closed this as completed Jan 14, 2024
@itsaky
Copy link
Member

itsaky commented Jan 14, 2024

Building the F-Droid client in AndroidIDE will require some changes to the build configuration.

For example, I see that the client uses Room database, which depends on the sqlite-jdbc library. sqlite-jdbc is known to have some issues when it is used in Android (see xerial/sqlite-jdbc#789, xerial/sqlite-jdbc#796 and #536). The issue was resolved in sqlite-jdbc v3.41.2.2 and Room v2.6.0-beta01.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants