Hello I am trying to implement minedojo, and I am ...
# community-support
c
Hello I am trying to implement minedojo, and I am facing issues with my build, (fairly new to programming too) I have posted on the minedojo issue forum too. Mainly issues with gradle. was wondering if anyone has experience with implementing minedojo. Thankyou
v
Please never anywhere share screenshots of text if you only want to share the text and not something additional like colors or IDE annotations. Text in images is hard to read, especially on mobile, very hard to copy, and nearly impossible to search for. Besdies that, Gradle build problems are best shared using a build
--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.
Oh and btw. you are not "implementing minedojo". "implementing minedojo" means you are writing / creating minedojo. You most properly just try to use it in your implementation of something else.