Can't build Gradle won't compile api #189
-
Minecraft Version1.18.x Mod LoaderForge Mod Loader Version40.1.85 Mod Version14.0.3 Describe the IssueCould not find method compile() for arguments [curse.maven:craftingtweaks-233071:3830906] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. LogsNo response Do you use any performance-enhancing mods (e.g. OptiFine) or custom server distributions (e.g. SpongeForge)?No response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Sounds like your gradle version might be too new. Are you using the gradle wrapper ( |
Beta Was this translation helpful? Give feedback.
-
No just using the build.gradle file in intellij |
Beta Was this translation helpful? Give feedback.
-
The example was outdated, you need to use dependencies {
implementation fg.deobf('curse.maven:craftingtweaks-233071:<fileId>') // for Forge; find the latest file id on CurseForge
} instead. |
Beta Was this translation helpful? Give feedback.
The example was outdated, you need to use
instead.