Johni0702 / BetterPortals

A Minecraft Mod which adds see-through portals usable without any loading screen
GNU General Public License v3.0
106 stars 15 forks source link

build fails to resolve dependencies #603

Open les-citrons opened 3 years ago

les-citrons commented 3 years ago
> 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 commented 3 years ago

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 commented 3 years ago

the page appears to be a 404 over https. odd

Johni0702 commented 3 years ago

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 commented 3 years ago

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

Johni0702 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 https://github.com/Johni0702/BetterPortals/blob/fa42589e8ec59b910400f51cd383da5bcd84055d/settings.gradle.kts#L11 to 541e148.

Johni0702 commented 3 years ago

Oh, and this one: https://github.com/Johni0702/BetterPortals/blob/fa42589e8ec59b910400f51cd383da5bcd84055d/settings.gradle.kts#L5 to http://maven.minecraftforge.net/. Same with any other references if I've missed any.

les-citrons commented 3 years ago

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 commented 3 years ago

Try https

les-citrons commented 3 years ago

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 commented 3 years ago

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

les-citrons commented 3 years ago

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 commented 3 years ago

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

useModule("com.github.ReplayMod:ForgeGradle:541e148:all")
les-citrons commented 3 years ago

this doesn't seem to have changed anything.

Johni0702 commented 3 years ago

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 commented 3 years ago

thanks for the help