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

Add dependency to build.gradle can not success gradle sync #688

Open
1 task done
zieglar opened this issue Jun 19, 2023 · 0 comments
Open
1 task done

Add dependency to build.gradle can not success gradle sync #688

zieglar opened this issue Jun 19, 2023 · 0 comments

Comments

@zieglar
Copy link

zieglar commented Jun 19, 2023

🐛 Describe the bug

I added the sentenceimplementation 'io.hypersistence:hypersistence-utils-hibernate-62:3.4.2' to build.gradle, then executed the ./gradlew refreshVersionsMigrate --mode=VersionsPropertiesAndPlaceholdersInCatalog, and finally generated implementation libs.hypersistence.utils.hibernate.62 in build.gradle and hypersistence-utils-hibernate-62 = "io.hypersistence:hypersistence-utils-hibernate-62: _" in libs.versions.toml, but when executing gradle sync, gradle reports an error

A problem occurred evaluating root project 'example'.
> Cannot convert the provided notation to an object of type Dependency: org.gradle.accessors.dm.LibrariesForLibs$HypersistenceUtilsHibernateLibraryAccessors@c123595.
  The following types/formats are supported:
    - String or CharSequence values, for example 'org.gradle:gradle-core:1.0'.
    - Maps, for example [group: 'org.gradle', name: 'gradle-core', version: '1.0'].
    - FileCollections, for example files('some.jar', 'someOther.jar').
    - Projects, for example project(':some:project:path').
    - ClassPathNotation, for example gradleApi().

⚠️ Current behavior

gradle can not sync.

✅ Expected behavior

gradle sync success

💣 Steps to reproduce

  1. add implementation 'io.hypersistence:hypersistence-utils-hibernate-62:3.4.2'
  2. run ./gradlew refreshVersionsMigrate --mode=VersionsPropertiesAndPlaceholdersInCatalog
  3. gradle sync
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

1 participant