Jump to content

[SOLVED] [1.14.4] build.gradle "Could not find method compile()"


Recommended Posts

Posted

Hi

 

Whenever I try and add a mod to the source the build instantly crashes.

 

...

dependencies {
    classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true



    compile "mezz.jei:jei-${mc_version}:${jei_version}"

...

 

It has been like for a while, but because I didn't necessarily need that mod I just didn't bother with it. But now I need to add some other mods I would like to use, such as Curios API.

 

build.gradle

  Reveal hidden contents
 

 

Even the suggested examples don't seem to work either: compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'

 

gradle_error.png.9631b6d9214511e10d47273e47a29006.png

 

Run

  Reveal hidden contents
 

 

Posted
  On 9/6/2019 at 12:48 PM, diesieben07 said:

compile has been replaced by implementation, you are using such a new gradle version that the old way is no longer supported.

Expand  

So, should I downgrade to a lower version of Gradle? Or can I use my current version with some changes, and what should that be? I thought I might be able to just replace compile with implementation, but it doesn't seem to be that easy as my IDE doesn't recognize that either.

 

17:50:12: Executing task 'runClient'...


FAILURE: Build failed with an exception.

* Where:
Build file '~/Files/Minecraft/Mods/Open/IntercraftCore/build.gradle' line: 23

* What went wrong:
A problem occurred evaluating root project 'IntercraftCore'.
> Could not find method implementation() for arguments [mezz.jei:jei-1.14.4:1.13.2-5.0.0.27] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* 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

BUILD FAILED in 0s
Could not find method implementation() for arguments [mezz.jei:jei-1.14.4:1.13.2-5.0.0.27] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
17:50:12: Task execution finished 'runClient'.

 

Posted

I was going to say it goes where you see the examples for such, but for some reason those examples have been copied into the buildscript block, are you following a tutorial?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

So what you're saying is you copied these lines into the buildscript block despite this line saying not to mess with the lines above? Why?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

So I got a different error message this time around:

 

BUILD FAILED in 7s
6 actionable tasks: 2 executed, 4 up-to-date
Could not find mezz.jei:jei-1.14.4:6.0.0.11_mapped_snapshot_20190806-1.14.3.
Searched in the following locations:
  - https://files.minecraftforge.net/maven/mezz/jei/jei-1.14.4/6.0.0.11_mapped_snapshot_20190806-1.14.3/jei-1.14.4-6.0.0.11_mapped_snapshot_20190806-1.14.3.pom
  - https://files.minecraftforge.net/maven/mezz/jei/jei-1.14.4/6.0.0.11_mapped_snapshot_20190806-1.14.3/jei-1.14.4-6.0.0.11_mapped_snapshot_20190806-1.14.3.jar
  - https://libraries.minecraft.net/mezz/jei/jei-1.14.4/6.0.0.11_mapped_snapshot_20190806-1.14.3/jei-1.14.4-6.0.0.11_mapped_snapshot_20190806-1.14.3.jar
  - https://repo.maven.apache.org/maven2/mezz/jei/jei-1.14.4/6.0.0.11_mapped_snapshot_20190806-1.14.3/jei-1.14.4-6.0.0.11_mapped_snapshot_20190806-1.14.3.pom
  - https://repo.maven.apache.org/maven2/mezz/jei/jei-1.14.4/6.0.0.11_mapped_snapshot_20190806-1.14.3/jei-1.14.4-6.0.0.11_mapped_snapshot_20190806-1.14.3.jar
Required by:
    project :
18:55:48: Task execution finished 'runClient'.

 

runtimeOnly fg.deobf("mezz.jei:jei-1.14.4:6.0.0.11")

Posted

You still have the JEI maven in your buildscript repositories block

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

  • Simon_kungen changed the title to [SOLVED] [1.14.4] build.gradle "Could not find method compile()"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.