Closed VahidGarousi closed 1 year ago
Please try our kotlin example to debug your differences.
I can't do that because i have separate file for versionUpdates which its name is versionManager.groovy
and i apply it in settings.groovy.kts
subProjects with this
subprojects {
apply(from = "$rootDir/buildsrcripts/versionManager.gradle.kts")
}
i can't figure our what i actually happening there
Oh, we’ll script plugins are on a different ClassLoader iirc, so you have to add the plugin to the buildscript classpath per script file. It’s a weird and annoying quirk.
The newer approach is an includeBuild of your own plugin, which install 3rd party as conventions. I think junit5 and others use that, but I haven’t in my own builds yet.
my groovy code:
my kotlin dsl code:
Error :