Everything is an unresolved reference in build.gradle.kts

I have a project and all the build.gradle.kts files do not build, instead every identifier is marked as an unresolved reference.

My build file looks like this (kotlin):

rootProject.name = "enki"
include("enki-core", "enki-spigot", "enki-benchmark")

I have no idea what possibly could be causing this.

here’s the repository if that helps diagnoise the issue better: https://git.sr.ht/~thezipcreator/enki/tree

Besides that you miss the most important of the 4 wrapper files - the actual wrapper - your build is working fine.

I figured it out (and it was a change that I didn’t commit to the repository, oops); I just forgot to apply the kotlin plugin in the subprojects. in IDEA all the identifiers appeared red, but really the error was caused by the kotlin block not being recognized.

1 Like