Giuseppe Barbieri
01/26/2025, 11:08 AM~/.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
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
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)Vampire
01/26/2025, 6:11 PM/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.Giuseppe Barbieri
01/27/2025, 8:31 AMinit
, when I said it was working I meant the groovy one, which was properly namedGiuseppe Barbieri
01/27/2025, 8:31 AMGiuseppe Barbieri
01/27/2025, 8:31 AMGiuseppe Barbieri
01/27/2025, 8:31 AM