Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

modRuntime doesn't work with local files

See original GitHub issue

Clone of #101, title and description copied from there.

Not much else to say. No errors or warnings logged, any lines like the following are seemingly just ignored:

modRuntime files("file/path/here.jar")
modRuntime fileTree(dir: "dir/path/here", include: "*.jar")

With a bit of finegling, CurseForge’s automatic Maven repo is a decent substitute when trying to add local dev mods (and probably better in the long run anyways), but this is definitely a slight annoyance and may not be avoidable for other applications. modCompile does work with files, but not with fileTree, and obviously doesn’t have the benefit of modRuntime’s runtime-only properties.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

modmuss50commented, Mar 14, 2021

In 0.7 loom I have expanded this to allow passing in any paths. You are supposed to be able to pass in a custom configuration as well but I broke this and do plan on fixing it.

Earthcomputercommented, Mar 14, 2021

The workaround for JIJ’ing jars built from other source sets (e.g. an API jar) turned out to be quite simple:

task remapApiJar(type: RemapJarTask, dependsOn: project.apiJar) {
	input = apiJar.archiveFile
	classifier = 'api'
	addNestedDependencies = false
remapJar.dependsOn remapApiJar

repositories {
	// ...
	flatDir {
		dirs file(remapApiJar.archivePath).parentFile

dependencies {
	include name: file(remapApiJar.archivePath).name.with { it.endsWith('.jar') ? it.substring(0, it.length() - 4) : it }

Thanks to mbfrog for his workaround, didn’t know flatDir repos existed until now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot resolve directory of all the import
So the 「Cannot resolve directory」error just pop up today (used to work normally before..) not sure how to fix it, I've tried "go......
Read more >
Go Modules Reference - The Go Programming Language
The go command provides several subcommands that change go.mod files. ... MVS is deterministic, and the build list doesn't change when new versions...
Read more >
My Mods or Playsets are not showing up in the Launcher.
If this doesn't work please give the following a go: - unsubscribe from all mods - delete the folder Documents/paradox/GAME/mod/
Read more >
SyntaxError: Cannot use import statement outside a module
But that gets me another error: "Error: Plugin/Preset files are not allowed to export objects, only functions." Here are the dependencies I ...
Read more >
Common start up Problems and Solutions – Facepunch Studios
If that doesn't work for some reason, you can do it manually: ... Open the "Local Files" tab; Press "Verify Integrity Of Game...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found