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

build fails to resolve dependencies #603

Open
les-citrons opened this issue May 20, 2021 · 18 comments
Open

build fails to resolve dependencies #603

les-citrons opened this issue May 20, 2021 · 18 comments

Comments

@les-citrons
Copy link

> Configure project :
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
Found AccessTransformer: betterportals_at.cfg
Version string '0.3.7.7-2-gfa42589*' does not match SemVer specification 
You should try SemVer : http://semver.org/

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'BetterPortals'.
> Could not resolve all dependencies for configuration ':deobfCompile'.
   > Could not resolve opencubicchunks:CubicChunks-1.12.2-0.0.970.0:SNAPSHOT.
     Required by:
         project :
      > Could not resolve opencubicchunks:CubicChunks-1.12.2-0.0.970.0:SNAPSHOT.
         > Could not get resource 'http://repo.spongepowered.org/maven/opencubicchunks/CubicChunks-1.12.2-0.0.970.0/SNAPSHOT/CubicChunks-1.12.2-0.0.970.0-SNAPSHOT.pom'.
            > Could not GET 'http://repo.spongepowered.org/maven/opencubicchunks/CubicChunks-1.12.2-0.0.970.0/SNAPSHOT/CubicChunks-1.12.2-0.0.970.0-SNAPSHOT.pom'. Received status code 520 from server: Origin Error

* 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 4s
@Johni0702
Copy link
Owner

Received status code 520 from server: Origin Error

https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#Cloudflare
Looks like the sponge maven is temporarily having issues.

@les-citrons
Copy link
Author

the page appears to be a 404 over https. odd

@Johni0702
Copy link
Owner

Yes, CubicChunks is not supposed to be on the sponge maven, a 404 is expected but a 520 is unexpected and caused Gradle to abort.

@les-citrons
Copy link
Author

ah, I see. could I possibly reorder the priority of the repositories somewhere?

@Johni0702
Copy link
Owner

https://github.com/Johni0702/BetterPortals/blob/master/build.gradle.kts#L89-L90

I believe Gradle resolves deps in parallel, so simply re-ordering may or may not work.

@les-citrons
Copy link
Author

yeah, it does not seem to work. thanks for your help, though. I guess I will have to wait for them to fix whatever is happening on their servers

@les-citrons
Copy link
Author

oh. changing the sponge repo to https fixes the 520s. but I still get this error.


> Configure project :
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
Found AccessTransformer: betterportals_at.cfg
Version string '0.3.7.7-2-gfa42589*' does not match SemVer specification 
You should try SemVer : http://semver.org/

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'BetterPortals'.
> Could not find CubicChunks-1.12.2-0.0.970.0-all.jar (opencubicchunks:CubicChunks-1.12.2-0.0.970.0:SNAPSHOT).
  Searched in the following locations:
      https://files.minecraftforge.net/maven/opencubicchunks/CubicChunks-1.12.2-0.0.970.0/SNAPSHOT/CubicChunks-1.12.2-0.0.970.0-SNAPSHOT-all.jar

* 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 20s

@Johni0702
Copy link
Owner

Ah, yes, Forge decided to move their maven repo with little regard for anyone still pointing at the old one.
Try changing the version at

useModule("com.github.ReplayMod:ForgeGradle:d5c13801") // FG 2.3 with Gradle 5 patches
to 541e148.

@Johni0702
Copy link
Owner

Oh, and this one:

maven("http://files.minecraftforge.net/maven")

to
http://maven.minecraftforge.net/. Same with any other references if I've missed any.

@les-citrons
Copy link
Author

ah, I get this error now


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'BetterPortals'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find ForgeGradle.jar (com.github.ReplayMod:ForgeGradle:d541e148).
     Searched in the following locations:
         http://maven.minecraftforge.net/com/github/ReplayMod/ForgeGradle/d541e148/ForgeGradle-d541e148.jar

* 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 10s

@Johni0702
Copy link
Owner

Try https

@les-citrons
Copy link
Author


FAILURE: Build failed with an exception.

* Where:
Build file '/home/raven/git/BetterPortals/build.gradle.kts' line: 7

* What went wrong:
Plugin [id: 'net.minecraftforge.gradle.forge', artifact: 'com.github.ReplayMod:ForgeGradle:d541e148'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.github.ReplayMod:ForgeGradle:d541e148')
  Searched in the following repositories:
    Gradle Central Plugin Repository
    BintrayJCenter
    maven(https://maven.minecraftforge.net/)
    maven2(https://jitpack.io)

* 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 5s

@Johni0702
Copy link
Owner

You typo'd, there's an extra d at the start of your version.

@les-citrons
Copy link
Author

ah, well I assumed I needed to put a d there because if there isn't, I get this error


FAILURE: Build failed with an exception.

* Where:
Build file '/home/raven/git/BetterPortals/build.gradle.kts' line: 7

* What went wrong:
Could not apply requested plugin [id: 'net.minecraftforge.gradle.forge', artifact: 'com.github.ReplayMod:ForgeGradle:541e148'] as it does not provide a plugin with id 'net.minecraftforge.gradle.forge'. This is caused by an incorrect plugin implementation. Please contact the plugin author(s).
> Plugin with id 'net.minecraftforge.gradle.forge' not found.

* 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 9s

@Johni0702
Copy link
Owner

Hm, not the error I'd expect but try using the :all version:

useModule("com.github.ReplayMod:ForgeGradle:541e148:all")

@les-citrons
Copy link
Author

this doesn't seem to have changed anything.

@Johni0702
Copy link
Owner

Sorry, I've got no idea then why the new version allegedly doesn't have the plugin in it while the old one did. You'll have to figure that our on your own.
It works fine in other projects, though I believe those mostly still use the old plugin syntax, though again that shouldn't really make a difference.

@les-citrons
Copy link
Author

thanks for the help

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

2 participants