Little rusty, been a while, just finished upgrading my mod to 1.7.10 and when I try to compile it, it's not finding the ic2 api. Everything runs fine in eclipse, build path includes the jar and IC2 functions work fine.
error from compile:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/forge/build/sources/java/cytools2/cytools2.java:47: error: package ic2 does not exist
import ic2.*;
^
1 error
1 warning
:compileJava FAILED
I have industrialcraft-2-2.2.767-experimental-dev.jar in /libs (from gradle root). I have tried every configuration under the sun in build.gradle dependencies and none of them seem to work. I'm probably missing something stupid but I can't figure it out.
version = "2.0"
group= "cytools2.cytools2"
archivesBaseName = "cytools"
minecraft {
version = "1.7.10-10.13.2.1230"
runDir = "eclipse"
}
dependencies {
// you may put jars on which you depend on in ./libs
// or you may define them like so..
//compile "some.group:artifact:version:classifier"
//compile "some.group:artifact:version"
// real examples
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
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'
}
}
Mod compiles fine if I comment out the ic2 imports and recipes etc.
Anyone else have trouble with the pipes? I've noticed that the fluiducts supplying gas to my compression dynamos after a chunk unload will not let the fluid run all the way, it will stop at some point and you have to break and replace it to get the fuel to flow. I've also seen this behavior in some itemducts in my factory, where product from the macerators, set on a round robin export, will just kinda bounce around between the inputs till i break / replace it, then it will work. Power conduits, same thing.
1
Little rusty, been a while, just finished upgrading my mod to 1.7.10 and when I try to compile it, it's not finding the ic2 api. Everything runs fine in eclipse, build path includes the jar and IC2 functions work fine.
error from compile:
/forge/build/sources/java/cytools2/cytools2.java:47: error: package ic2 does not exist
import ic2.*;
^
1 error
1 warning
:compileJava FAILED
I have industrialcraft-2-2.2.767-experimental-dev.jar in /libs (from gradle root). I have tried every configuration under the sun in build.gradle dependencies and none of them seem to work. I'm probably missing something stupid but I can't figure it out.
build.gradle
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
}
}
/*repositories {
maven {
name = "ic2"
url = "http://maven.ic2.player.to/"
}
}
*/
apply plugin: 'forge'
version = "2.0"
group= "cytools2.cytools2"
archivesBaseName = "cytools"
minecraft {
version = "1.7.10-10.13.2.1230"
runDir = "eclipse"
}
dependencies {
// you may put jars on which you depend on in ./libs
// or you may define them like so..
//compile "some.group:artifact:version:classifier"
//compile "some.group:artifact:version"
// real examples
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
//compile '/forge/libs/industrialcraft-2-2.2.767-experimental-dev.jar'
// compile files('lib/industrialcraft-2-2.2.767-experimental-dev.jar')
// compile fileTree (dir: 'libs', include: ['*.jar'])
// compile 'net.industrial-craft:industrialcraft-2:2.2.767-experimental-dev:api'
// api 'net.industrial-craft:industrialcraft-2:2.2.767-experimental-dev:api'
}
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'
}
}
Mod compiles fine if I comment out the ic2 imports and recipes etc.
Any help appreciated.
1
1
1