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

problem with running "gradle shadowJar" #206

Open
yufpan111 opened this issue Apr 1, 2022 · 4 comments
Open

problem with running "gradle shadowJar" #206

yufpan111 opened this issue Apr 1, 2022 · 4 comments

Comments

@yufpan111
Copy link

image

Hi! This is the first time I use gradle, hope to get some advice! These problems occur when I run gradle shadowJar on the terminal, the Chinese in the figure indicate "Error: class repetition".

Really need your help!

@SpirinEgor
Copy link
Contributor

Hi!

gradle may execute global Gradle version. Try to use

./gradlew clean
./gradlew shadowJar

@yufpan111
Copy link
Author

Thank you for your response, it works! But there's a new problem:
image

I'm sorry to bother you again... It seems like a simple problem, but I still can't solve that:(

@SpirinEgor
Copy link
Contributor

First time see this problem and can't reproduce it. Possibly, there is an issue in intermediate dependencies.

Try to add maven isAllowInsecureProtocol = true inside repositories block in build.gradle.kts.

@taowangcheng
Copy link

Hello, I am using gradle for the first time, I have the following error when I run the command gradle shadowJar, how can I solve it? Thanks!
Really need your help!
image

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

3 participants