{"id":16464920,"url":"https://github.com/alikhachev/strange-gradle-dependency-resolution-sample","last_synced_at":"2026-04-11T21:02:36.699Z","repository":{"id":194502098,"uuid":"690968600","full_name":"ALikhachev/strange-gradle-dependency-resolution-sample","owner":"ALikhachev","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-13T08:46:42.000Z","size":349,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T10:32:38.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ALikhachev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-13T08:41:52.000Z","updated_at":"2023-09-13T08:43:31.000Z","dependencies_parsed_at":"2023-09-13T17:12:24.100Z","dependency_job_id":null,"html_url":"https://github.com/ALikhachev/strange-gradle-dependency-resolution-sample","commit_stats":null,"previous_names":["alikhachev/strange-gradle-dependency-resolution-sample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALikhachev%2Fstrange-gradle-dependency-resolution-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALikhachev%2Fstrange-gradle-dependency-resolution-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALikhachev%2Fstrange-gradle-dependency-resolution-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALikhachev%2Fstrange-gradle-dependency-resolution-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ALikhachev","download_url":"https://codeload.github.com/ALikhachev/strange-gradle-dependency-resolution-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241014090,"owners_count":19894189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T11:30:27.589Z","updated_at":"2026-04-11T21:02:36.596Z","avatar_url":"https://github.com/ALikhachev.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Strange Gradle dependency resolution sample\n\n### Steps to reproduce the expected behavior:\n\n1. `./gradlew clean`\n2. `./gradlew -PincludeLib=true -Ppublish=true publish -PmyVersion=1.0.0-Beta1`\n3. `./gradlew -PincludeLib=true -Ppublish=true publish -PmyVersion=1.0.0-Beta2`\n4. `./gradlew test --scan`\n\nThe setup will add both `org.example:lib:1.0.0-Beta1` and `org.example:lib:1.0.0-Beta2`,\nthen the Gradle resolver will choose `org.example:lib:1.0.0-Beta2`\n\n![Correct scan](correct.png)\n\n### Steps to reproduce the unexpected behavior:\n\n1. `./gradlew clean`\n2. `./gradlew -PincludeLib=true -Ppublish=true publish -PmyVersion=1.0.0-Beta1`\n3. `./gradlew -PincludeLib=true -PmyVersion=1.0.0-Beta2 test --scan`\n\nThe setup will add both `org.example:lib:1.0.0-Beta1` and `project(\":lib\")` known\nas `org.example:lib:1.0.0-Beta2`.\nThe latter should be chosen because it has a higher version, however, it doesn't work so. Perhaps it\nshould also be chosen because it's a local project with the same coordinates as requested artifact.\n\n![Incorrect scan](incorrect.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falikhachev%2Fstrange-gradle-dependency-resolution-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falikhachev%2Fstrange-gradle-dependency-resolution-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falikhachev%2Fstrange-gradle-dependency-resolution-sample/lists"}