-
Notifications
You must be signed in to change notification settings - Fork 1
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
error:ehcache-ehcache previously defined at line 1, column 1 #100
Comments
@qinkangdeid glad you found the project! It looks like you're using spring 2.7.x, to be honest I've only tested with 3.X since v2 is EOL. Appreciate you providing the sample project, I'll look into this tonight and let you know what I find |
@qinkangdeid the reason for the error is because if you look at spring-boot-dependencies:2.7.18 they have declared basically two different versions of the same artifact
Based on how we generated the aliases by default, these create the conflicting entries You can fix this with a simple change in the config in your settings.gradle.kts
This will give you I could do a better job of adding some pre-check analysis for better error messaging, and maybe change the name generation algorithm if possible when conflicting entries like this arise, but for the time being this would be the only fix. Let me know if you have any questions! |
Oh, I see! I didn't realize that spring-boot-dependencies would have two ehcache versions. I understand now. When naming conflicts occur:
|
I will be merging this PR soon and I'll cut 1.4.1. This should resolve the first item above. The new error will be:
The second item above will take more work/thought |
@qinkangdeid PR has been merged and 1.4.1 is published to Gradle now |
I just decided to use Gradle as my build tool and realized that catalog works really well with Gradle. I found out that Spring didn't release a usable catalog until I discovered this repository. It's awesome!! It seems to meet my needs perfectly. I tested it out and encountered an error when refreshing after configuring it. I feel like what I did is the same as your document. What caused this? Did I configure something incorrectly? Here is my demo instance. Can you take a look for me? thanks
my settings.gradle.kts config:
error:
my demo:
test-dependencies.zip
The text was updated successfully, but these errors were encountered: