NeoGradle icon indicating copy to clipboard operation
NeoGradle copied to clipboard

Non-minecraft dependency not being added to classpath

Open HamsterSpaceNerd3000 opened this issue 6 months ago • 2 comments

I'm trying to add GraalPy to my mod as a dependency. The stuff in the docs is outdated for gradle 9.

Here's what I got rn in my configureEach run `configureEach { systemProperty 'forge.logging.markers', 'REGISTRIES'

        dependencies {
            runtimeOnly files(project.configurations.graalLibraries)
        }

        logLevel = org.slf4j.event.Level.DEBUG
    }`

In honesty I'm not very sure whats wrong aside from that graalvm isn't being added to the classpath

HamsterSpaceNerd3000 avatar Aug 29 '25 16:08 HamsterSpaceNerd3000

Have you tried:

configureEach {
	systemProperty 'forge.logging.markers', 'REGISTRIES'

      dependencies {
          runtimeOnly project.configurations.graalLibraries
      }

      logLevel = org.slf4j.event.Level.DEBUG
}

So without the files?

Greets

marchermans avatar Aug 30 '25 10:08 marchermans

Not sure why the old one wouldn't throw this, but when I made the change I suggested. I got the following error. "Adding a Configuration as a dependency is no longer allowed as of Gradle 8.0."

HamsterSpaceNerd3000 avatar Aug 30 '25 15:08 HamsterSpaceNerd3000