3.4 Разрешается выкладывание кода, файлов конфигураций, логов и т.д. только под BB-код CODE
Я разрабатываю 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
мои состовляющие Gradle :
build.gradle :
buildscript { repositories { maven { url = '
rocessor") 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 "
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Авторизуйтесь для просмотра ссылок..
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
Авторизуйтесь для просмотра ссылок.
in the Gradle documentation.мои состовляющие Gradle :
build.gradle :
buildscript { repositories { maven { url = '
Авторизуйтесь для просмотра ссылок.
' } maven { url = '
Авторизуйтесь для просмотра ссылок.
' } maven { name = 'impactdevelopment-repo' url = '
Авторизуйтесь для просмотра ссылок.
' } 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 '
Авторизуйтесь для просмотра ссылок.
' 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 = '
Авторизуйтесь для просмотра ссылок.
.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 "
Авторизуйтесь для просмотра ссылок.
.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 = "
Авторизуйтесь для просмотра ссылок.
" } maven { name = 'impactdevelopment-repo' url = '
Авторизуйтесь для просмотра ссылок.
' } mavenLocal() } dependencies { annotationProcessor("org.spongepowered:mixin:0.8.2
Авторизуйтесь для просмотра ссылок.
" dest 'libs/' } if (project.tasks.findByName('downloadAssets')) { downloadAssets.enabled = false } if (project.tasks.findByName('extractNatives')) { extractNatives.enabled = false }gradle.properties:
Авторизуйтесь для просмотра ссылок.
-download=true org.gradle.jvmargs=-Dnet.minecraftforge.gradle.check.java=falsegradle-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