I know there are lots of similar questions to this one, but they don't cover my situation: "1.-", where the -
isn't a placeholder or a negative number but is exactly what the error log states.
10:01:41: Executing task 'build'...
Starting Gradle Daemon...
Gradle Daemon started in 4 s 748 ms
> Configure project :
Java: 14.0.1 JVM: 14.0.1+7(Oracle Corporation) Arch: amd64
New Dep: net.minecraftforge:forge:1.16.4-35.1.37_mapped_snapshot_20201028-1.16.3
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> error: invalid source release: 1.-
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 33s
1 actionable task: 1 executed
10:02:18: Task execution finished 'build'.
I tried several solutions to questions containing exact numbers describing what source release is invalid, but none of them worked. It also worked fine yesterday and stopped working after I restarted IntelliJ.