I'm using a corporate init script under `~/.gradle...
# community-support
g
I'm using a corporate init script under
~/.gradle/init.d
, which was working fine now however I created a new project using gradle 8.12.1 init for some binary plugin development and I keep getting > Unresolved reference: settingsEvaluated for top-level
Copy code
settingsEvaluated {
    pluginManagement {
        repositories {
            maven {
                name = ".."
                url = uri("..")
            }
        }
    }
}
and > Caused by: java.lang.IllegalArgumentException: The plugin must be applied in an init script (or to the Gradle object), but was applied in a build script (or to the Project object) for
Copy code
apply<CompanyRepositoryPlugin>()
at the top of my
~/.gradle/init.d/my-init.gradle.kts
init plugin I have a feeling this might be somehow related to Idea and/or the kotlin plugin, but I'd like to get some feedbacks here (full log in gist)
v
Rename
/home/giba/.gradle/init.d/elara.nexus.gradle.kts
to
/home/giba/.gradle/init.d/elara.nexus.init.gradle.kts
and see whether it helps. The file suffix usually defines the context, I wonder that it worked before actually.
g
damn, I forgot the
init
, when I said it was working I meant the groovy one, which was properly named
sorry for the dummy error
and thanks!
it works flawless now indeed
👌 1