- 2
- 0
Я разрабатываю Laby Mod 3 аддон для версии майнкрафт 1.16.5 , использую я java 19 , нужна именно она, или 17., когда Intellij idea импортирует проект как gradle , появляется эта ошибка:
Build file 'D:\Nebulae-Client\newtargetesp\build.gradle' line: 22
A problem occurred evaluating root project 'MDK by @ghostbitbox'.
* Try:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to Command-Line Interface Reference in the Gradle documentation.
мои состовляющие Gradle :
build.gradle :
gradle.properties:
gradle-wrapper.properties:
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
Build file 'D:\Nebulae-Client\newtargetesp\build.gradle' line: 22
A problem occurred evaluating root project 'MDK by @ghostbitbox'.
Failed to apply plugin 'net.minecraftforge.gradle'.
Found java version 19.0.2. Minimum required is 1.8.0_101. Versions 11.0.0 and newer are not supported yet.
* 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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to Command-Line Interface Reference in the Gradle documentation.
мои состовляющие Gradle :
build.gradle :
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
maven { url = 'Repository - Sonatype Nexus Repository' }
maven {
name = 'impactdevelopment-repo'
url = 'Maven Repo'
}
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'com.github.ImpactDevelopment', name: 'ForgeGradle', version: '3.0.115'
classpath group: 'com.github.ImpactDevelopment', name: 'MixinGradle', version: '0.6.2'
}
}
plugins {
id 'de.undercouch.download' version '4.0.0'
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'org.spongepowered.mixin'
version = '1.0.0'
group = 'mdk.by.ghostbitbox'
archivesBaseName = 'MDK by @ghostbitbox'
java {
toolchain {
languageVersion = org.gradle.jvm.toolchain.JavaLanguageVersion.of(19)
}
}
tasks.withType(org.gradle.api.tasks.compile.JavaCompile).configureEach {
options.release = 19
}
def mcpVersion = [channel: 'snapshot', version: '20201028-1.16.3']
mixin {
defaultObfuscationEnv searge
add sourceSets.main, "ghostbitbox.refmap.json"
}
minecraft {
mappings mcpVersion
if (getProject().hasProperty("forge")) {
reobfMappings 'searge'
} else {
reobfMappings 'notch'
}
runs {
client {
workingDirectory project.file('run')
main "mdk.by.ghostbitbox.launch.AddonLauncher"
jvmArg('-DdebugMode=true')
jvmArg('-Daddonresources=addon.json')
args '--username', 'DevUser'
args '--accessToken', 'LabyMod'
args '--userProperties', '{}'
args '--version', 'LabyMod-1.16.5'
args '--tweak', 'net.labymod.vanilla.LabyModTweaker'
}
}
}
repositories {
mavenCentral()
maven {
name = "spongepowered"
url = "Repository - Sonatype Nexus Repository"
}
maven {
name = 'impactdevelopment-repo'
url = 'Maven Repo'
}
mavenLocal()
}
dependencies {
annotationProcessor("org.spongepowered:mixin:0.8.2rocessor")
minecraft 'com.github.ImpactDevelopment:Vanilla:1.16.5'
compile(files('libs/lm_api_mc1.16.5.jar'))
compile("org.ow2.asm:asm-analysis:6.2") { transitive = false }
compile("org.ow2.asm:asm-util:6.2") { transitive = false }
compile("org.ow2.asm:asm-commons:6.2") { transitive = false }
compile("org.spongepowered:mixin:0.8.2") { transitive = false }
compile("net.minecraft:launchwrapper:1.12") { transitive = false }
compile("org.joml:joml:1.10.5") { transitive = false }
}
jar {
exclude("**/launch")
}
task downloadAPI(type: Download) {
group("labymod")
File libraryDirectory = new File("libs/")
if (!libraryDirectory.exists()) {
libraryDirectory.mkdirs()
}
src "https://dl.labymod.net/latest/api/files/lm_api_mc1.16.5.jar"
dest 'libs/'
}
if (project.tasks.findByName('downloadAssets')) {
downloadAssets.enabled = false
}
if (project.tasks.findByName('extractNatives')) {
extractNatives.enabled = false
}
gradle.properties:
org.gradle.java.installations.auto-download=true org.gradle.jvmargs=-Dnet.minecraftforge.gradle.check.java=false
gradle-wrapper.properties:
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists