Posted August 9, 20205 yr I want to my mod use com.fasterxml.jackson.core but "compile" doesn't work in build.gradle buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } jcenter() mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true compile 'com.fasterxml.jackson.core:jackson-databind:2.2.3' } } apply plugin: 'net.minecraftforge.gradle' // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. apply plugin: 'eclipse' apply plugin: 'maven-publish' //Rest of build.gradle from forge MDK Edited August 9, 20205 yr by dommilosz
August 9, 20205 yr Author Thanks. I forgot about it. I didn't know that gson have functions to convert class to json and json to class.
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.