Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not set unknown property 'runDir'. I need help right now. I'm at a dead end #943

Closed
tryhuiiy opened this issue Mar 22, 2024 · 1 comment
Labels
forum Not an issue with ForgeGradle, see the forums

Comments

@tryhuiiy
Copy link

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\Users\Damgh\Downloads\OpenComputersX86-master\OpenComputersX86-master\build.gradle' line: 23

  • What went wrong:
    A problem occurred evaluating root project 'OpenComputersX86-master'.

Could not set unknown property 'runDir' for root project 'OpenComputersX86-master' of type org.gradle.api.Project.

  • 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 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4s

this is a 10 yr old mod using forge gradle 4.0.1 that was originally on gradle 2.0 and forgegradle 1.2 so imma put my build.gradle file here. yes i removed anything that got in my way and now im at a dead end

buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "https://maven.minecraftforge.net/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven { url "http://jcenter.bintray.com" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:4.0.1'
}
}
version = "-1.16.5-0.1.0"
group= "lperkins2.ocx86" // http://maven.apache.org/guides/mini/guide-naming-conventions.html

minecraft (
version = "1.16.5-36.2.42"
runDir = "eclipse/assets"
)

apply plugin: 'forge'

// 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 files("libs/OpenComputers-MC1.7.10-1.5.2.9-universal.jar") {
    builtBy "fakecompile"
}
compile files("jpc/src/org/")
compile files("OCLights2/src/main/java/ds/")

task fakecompile << {
println 'fake compiling classes'
}

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'
}

}

buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net/' }
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:4.0.1'
}
}

@PaintNinja PaintNinja added the forum Not an issue with ForgeGradle, see the forums label Mar 22, 2024
Copy link

github-actions bot commented Mar 22, 2024

👋 We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for the Forge Support Forums or Forge Discord. Please create a new topic on the support forum with this issue or ask in the #tech-support channel in the Discord server, and the conversation can continue there.

@github-actions github-actions bot locked as off-topic and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
forum Not an issue with ForgeGradle, see the forums
Projects
None yet
Development

No branches or pull requests

2 participants