Gradle Dependency Catalog compatibility
See original GitHub issueIssue Description
Hello
I enabled Gradle Dependency Catalog with 1.5.0-RC-2
and I got following stacktrace.
FAILURE: Build failed with an exception.
* What went wrong:
Using dependency catalogs requires the activation of the matching feature preview.
See the documentation at https://docs.gradle.org/7.2/userguide/platforms.html#sub:central-declaration-of-dependencies
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 560ms
I also see it deleted my projects root build.gradle
and settings.gradle
git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: build.gradle
deleted: settings.gradle
Untracked files:
(use "git add <file>..." to include in what will be committed)
backup_build.gradle
backup_settings.gradle
no changes added to commit (use "git add" and/or "git commit -a")
Inside the settings.gradle
it contains the line to active the Gradle Dependency Catalog
enableFeaturePreview("VERSION_CATALOGS")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
Any idea?
I’m using Gradle 7.2 btw
Thanks in advance
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Sharing dependency versions between projects
For each catalog, Gradle generates type-safe accessors so that you can easily add dependencies with autocompletion in the IDE. · Each catalog is...
Read more >Frequently asked questions about version catalogs
Gradle comes with both a settings API to declare the catalog, or a convenience TOML file. I would personally say that most people...
Read more >Gradle: Version Catalogs - Styling Android
In April 2021 Gradle V7.0 was released. It introduces a new experimental feature called version catalogs. These can make life easier when we ......
Read more >Using Version Catalog on Android projects | by Igor Escodro
Gradle introduced in version 7.0 a new feature called Version Catalog. It represents a list of type-safe dependencies to be used across the...
Read more >New features in Android Studio Preview
Android Studio Flamingo Canary 7 introduces support for Gradle Version Catalogs, a feature that lets you manage dependencies in one central location and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the repo, I got the issue reproduced and I’m working on a fix.
Seems to work again. Thanks for fixing this.