I would also like to add my solution here without using any hacks.
The idea is simple. Since precompiled script plugins usually are a completely separated Gradle project (as long as you use includeBuild()
to import your precompiled script plugins), we can just consume the version catalog in the build.gradle.kts
that build up your precompiled script plugins (not the build.gradle.kts
that builds up the main application)
The solution was focusing on adding a precompiled script plugins for setting plugin (Plugin<Setting>
), but it is the same idea for project plugin (Plugin<Project>
)