dear .
im cant fix my problem and im need help . so help me .
this is my build.gradle file :
plugins {
id "java"
id "idea"
id "org.jetbrains.kotlin.jvm"
id "com.github.johnrengelman.shadow" version "6.1.0"
id "net.minecraftforge.gradle"
id "org.spongepowered.mixin"
id "com.gorylenko.gradle-git-properties" version "2.4.0"
}
repositories {
mavenLocal()
mavenCentral()
maven { url = "https://repo.spongepowered.org/repository/maven-public/" }
maven { url = "https://jitpack.io/" }
maven { url = "https://getfdp.today/repo/" }
maven {
url = "https://maven.pkg.github.com/jcefmaven/jcefmaven/"
credentials {
username = "jcefmavenbot"
password = "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"
}
}
}
version = "3.0.0"
group = "org.unlegitmc.fdp"
archivesBaseName = "PedarClient"
sourceCompatibility = targetCompatibility = 1.8
compileJava.options.encoding = "UTF-8"
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
minecraft {
version = "1.8.9-11.15.1.2318-1.8.9"
runDir = "run"
mappings = "stable_22"
makeObfSourceJar = false
clientJvmArgs += ["-Dfml.coreMods.load=net.ccbluex.liquidbounce.injection.forge.TransformerLoader", "-Xmx1024m -Xms1024m", "-Ddev-mode"]
}
configurations {
include
implementation.extendsFrom(include)
}
dependencies {
include("org.spongepowered:mixin:0.7.11-SNAPSHOT") {
transitive = false
exclude module: "guava"
exclude module: "commons-io"
exclude module: "gson"
exclude module: "launchwrapper"
exclude module: "log4j-core"
exclude module: "slf4j-api"
}
annotationProcessor("org.spongepowered:mixin:0.7.11-SNAPSHOT")
include "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
include("me.friwi:jcefmaven:$jcef_version") {
exclude module: "commons-compress" // minecraft have a old version of this library
exclude module: "jogl-all" // we use lwjgl
exclude module: "gluegen-rt" // this is the library for joal
}
include("com.github.unlegitmc:fuckpcl:2.0") {
exclude module: "kotlin-stdlib-jdk8"
exclude module: "jna-platform"
}
include("com.jagrosh:DiscordIPC:0.4")
include("me.liuli:Elixir:1.2.1") {
exclude module: "kotlin-stdlib"
exclude module: "authlib"
}
include fileTree(include: ["*.jar"], dir: "libs")
}
shadowJar {
archiveClassifier.set("")
configurations = [project.configurations.include]
duplicatesStrategy DuplicatesStrategy.EXCLUDE
// Ultralight native files are going to be downloaded from our cloud
exclude "native-binaries/**"
exclude "LICENSE.txt"
exclude "META-INF/maven/**"
exclude "META-INF/versions/**"
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
filesMatching("mcmod.info") {
expand "version": project.version, "mcversion": project.minecraft.version
}
rename "(.+_at.cfg)", "META-INF/\$1"
}
task moveResources {
doLast {
ant.move file: "${buildDir}/resources/main",
todir: "${buildDir}/classes/java"
}
}
moveResources.dependsOn(processResources)
classes.dependsOn(moveResources)
jar {
manifest.attributes(
"FMLCorePlugin": "net.ccbluex.liquidbounce.injection.forge.TransformerLoader",
"FMLCorePluginContainsFMLMod": true,
"ForceLoadAsMod": true,
"MixinConfigs": "mixins.fdpclient.json",
"ModSide": "CLIENT",
"TweakClass": "org.spongepowered.asm.launch.MixinTweaker",
"TweakOrder": "0",
"FMLAT": "fdpclient_at.cfg",
)
enabled = false
}
mixin {
disableRefMapWarning = true
defaultObfuscationEnv searge
add sourceSets.main, "mixins.fdpclient.refmap.json"
}
reobf {
shadowJar {
mappingType = "SEARGE"
}
}
tasks.reobfJar.dependsOn(shadowJar)
and im got this error :
C:\Users\RC\Desktop\editing area>gradle build
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\RC\Desktop\editing area\build.gradle' line: 6
* What went wrong:
Plugin [id: 'net.minecraftforge.gradle'] was not found in any of the following s
ources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this
source)
* 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 5s
C:\Users\RC\Desktop\editing area>