Final Update:
While following a tutorial I was watching, It showed that you need to make system variables. I guess a long time ago I made a local user variable for the JAVA_HOME that went to an old java version. Silly mistake, I deleted it and everything is working now.
Update:
I have tried using different versions and they all give me the same error. I deleted my .gradle folder and that seemed to start working properly but then failed with the same error message.
I don't know what to do, any help is appreciated.
Im trying to setup a new mod and when i run 'gradlew setupDecompWorkspace', i get and error that says
A problem occurred evaluating root project 'mod'.
> Failed to apply plugin [id 'net.minecraftforge.gradle.forge']
> Unable to obtain url ([https://files.minecraftforge.net/maven/net/minecraftforge/forge/json]) with etag!
I have tried many different things but I can't figure out a way to fix this problem. Thanks!