> Task :compileJava
Potential refmap conflict. Duplicate refmap name mixin.nordclient.refmap.json specified for sourceSet main, already defined for sourceSet main
Note: SpongePowered MIXIN Annotation Processor Version=0.7.11
Note: ObfuscationServiceMCP supports type: "searge"
Note: ObfuscationServiceMCP supports type: "notch"
Note: Loading searge mappings from C:\Users\lassi\.gradle\caches\minecraft\de\oceanlabs\mcp\mcp_snapshot\20180814\1.12.2\srgs\mcp-srg.srg
Note: Loading notch mappings from C:\Users\lassi\.gradle\caches\minecraft\de\oceanlabs\mcp\mcp_snapshot\20180814\1.12.2\srgs\mcp-notch.srg
Note: Writing refmap to C:\Users\lassi\Documents\CousinWare1.12.2Updated-master\build\tmp\compileJava\compileJava-refmap.json
Note: Writing refmap to C:\Users\lassi\Documents\CousinWare1.12.2Updated-master\build\tmp\compileJava\compileJava-refmap.json
Note: Writing searge output SRGs to C:\Users\lassi\Documents\CousinWare1.12.2Updated-master\build\tmp\compileJava\mcp-srg.srg
Note: Writing notch output SRGs to C:\Users\lassi\Documents\CousinWare1.12.2Updated-master\build\tmp\compileJava\mcp-notch.srg
C:\Users\lassi\Documents\CousinWare1.12.2Updated-master\build\sources\main\java\io\ace\nordclient\CousinWare.java:6: error: cannot find symbol
import io.ace.nordclient.event.EventLaunch;
^
symbol: class EventLaunch
location: package io.ace.nordclient.event
Note: Writing refmap to C:\Users\lassi\Documents\CousinWare1.12.2Updated-master\build\tmp\compileJava\compileJava-refmap.json
Note: Writing refmap to C:\Users\lassi\Documents\CousinWare1.12.2Updated-master\build\tmp\compileJava\compileJava-refmap.json
Note: Writing searge output SRGs to C:\Users\lassi\Documents\CousinWare1.12.2Updated-master\build\tmp\compileJava\mcp-srg.srg
Note: Writing notch output SRGs to C:\Users\lassi\Documents\CousinWare1.12.2Updated-master\build\tmp\compileJava\mcp-notch.srg
1 error
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* 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 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 17s
7 actionable tasks: 4 executed, 3 up-to-date```
this comes up when trying to build.
------------------------------------------------------------
Gradle 4.9
------------------------------------------------------------
Build time: 2018-07-16 08:14:03 UTC
Revision: efcf8c1cf533b03c70f394f270f46a174c738efc
Kotlin DSL: 0.18.4
Kotlin: 1.2.41
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM: 1.8.0_202 (Oracle Corporation 25.202-b08)
OS: Windows 10 10.0 x86
this is what i use.
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
maven {
name = 'SpongePowered'
url = 'https://repo.spongepowered.org/repository/maven-public/'
}
maven {
name = 'impactdevelopment-repo'
url = 'https://impactdevelopment.github.io/maven/'
}
}
dependencies {
classpath 'club.minnced:discord-webhooks:0.5.6'
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath 'com.github.oshi:oshi-core:5.3.4'
classpath "org.slf4j:slf4j-simple:1.6.1"
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'com.github.johnrengelman.shadow'
//apply plugin: 'com.github.oshi'
version project.modVersion
group project.modGroup // http://maven.apache.org/guides/mini/guide-naming-conventions.html
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
compileJava {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
}
minecraft {
version = project.forgeVersion
runDir = 'run'
mappings = project.mcpVersion
coreMod = 'io.ace.nordclient.mixin.NordMixinLoader'
makeObfSourceJar = false
}
repositories {
maven {
name = 'spongepowered-repo'
url = 'https://repo.spongepowered.org/repository/maven-public/'
}
maven {
name = 'impactdevelopment-repo'
url = 'https://impactdevelopment.github.io/maven/'
}
maven {
name = 'swt-repo'
url = "http://maven-eclipse.github.io/maven"
}
maven {
name = "jitpack.io"
url = "https://jitpack.io"
}
mavenCentral()
}
dependencies {
compile("org.spongepowered:mixin:0.7.11-SNAPSHOT") {
exclude module: 'launchwrapper'
exclude module: 'guava'
exclude module: 'gson'
exclude module: 'commons-io'
}
compile 'club.minnced:java-discord-rpc:2.0.1'
compile 'club.minnced:discord-rpc-release:v3.3.0'
compile "com.github.cabaletta:baritone:1.2.14"
compile "cabaletta:baritone-api:1.2"
compile group: 'net.jodah', name: 'typetools', version: '0.5.0'
compile group: "com.googlecode.json-simple", name: "json-simple", version: "1.1.1"
compile group: 'com.github.oshi', name: 'oshi-core', version: '5.3.4'
compile group: "org.slf4j", name : "slf4j-simple", version: "1.6.1"
compile group: "org.tinylog", name: "tinylog", version: "1.3.2"
compile group: 'org.json', name: 'json', version: '20180813'
}
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property 'version', project.version
inputs.property 'mcversion', project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand 'version': project.version, 'mcversion': project.minecraft.version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
shadowJar {
dependencies {
include(dependency('org.spongepowered:mixin'))
include(dependency('club.minnced:discord-rpc-release:v3.3.0'))
include(dependency('club.minnced:java-discord-rpc:2.0.1'))
include(dependency('net.jodah:typetools'))
include(dependency('com.googlecode.json-simple:json-simple:1.1.1'))
include(dependency('cabaletta:baritone-api:1.2'))
include(dependency('org.json:json'))
}
exclude 'dummyThing'
exclude 'LICENSE.txt'
classifier = 'release'
}
mixin {
defaultObfuscationEnv searge
add sourceSets.main, 'mixin.nordclient.refmap.json'
}
reobf {
shadowJar {
mappingType = 'SEARGE'
classpath = sourceSets.main.compileClasspath
}
}
build.dependsOn(shadowJar)
jar {
manifest {
attributes(
'MixinConfigs': 'mixin.nordclient.json',
'tweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
'TweakOrder': 0,
'FMLCorePluginContainsFMLMod': 'true',
'FMLCorePlugin': 'io.ace.nordclient.mixin.NordMixinLoader',
'ForceLoadAsMod': 'true',
//'FMLAT': 'nordclient_at.cfg'
)
}
}
and this is my build.gradle.
I dont have any idea what to do since i have JAVA_HOME set. BTW i dont have any indicators to it in gradle.properties since it was giving me error, but i had my file path all the way from the C:/programfiles (86x)