Christine Zhou
01/22/2025, 2:12 AMVampire
01/22/2025, 3:54 AM--scan
by sharing its URL.
Regarding the issue, generally if you want help with your code (build script in this case) it helps if you provide the code so that people trying to help do not need to guess what you have.
It looks to me like you put classpath('com.github.brandonhoughton: ForgeGradle:FG_2.2_patched-SNAPSHOT')
in the wrong place in your build script where it is not valid syntax.
Two points regarding that.
1. You should not use classpath
at all to add Gradle plugins to a build script classpath, that is very old legacy syntax which is discouraged, instead you should properly use a plugins { ... }
block. If you insist on following that bad practice, it has to be within buildscript { dependencies { ... } }
2. I highly recommend switching from Groovy DSL to Kotlin DSL. By now it is the default DSL, you immediately get type-safe build scripts, actually helpful error messages when you mess up the syntax, and amazingly better IDE support if you use a good IDE like IntelliJ IDEA or Android Studio.Vampire
01/22/2025, 3:55 AM