Jump to content

Disable validation of certificates when building java


Animaleante

Recommended Posts

I'm developing a mod using JetBrain's IntelliJ, but I have somethings blocked on my company's network (Don't worry, I develop during lunch), but because of that, my build fails with a message saying that the build failed cause it could not validate the certificates for forge. It suggests I add the VM option "-Dnet.minecraftforge.gradle.test_certs=false", which I did add to my "runClient" configuration, but id did not change anything. Anyone can help?

 

Link to comment
Share on other sites

This is the error:
 

Build file '/home/diogo/Documents/mine-mods/ImprovedWolves/build.gradle' line: 11

A problem occurred evaluating root project 'ImprovedWolves'.
> Failed to apply plugin [id 'net.minecraftforge.gradle']
   > Failed to validate certificate for https://files.minecraftforge.net/maven/, Most likely cause is an outdated JDK. Try updating at https://adoptopenjdk.net/ To disable this check re-run with -Dnet.minecraftforge.gradle.test_certs=false


(This mod is not mine, I'm working on it to learn how to mod, but I know it works because when I build it at home it works.)

Edited by Animaleante
Explanation
Link to comment
Share on other sites

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.