hi, is it possible to write extensions for `settin...
# gradle
g
hi, is it possible to write extensions for
settings.gradle.kts
? Or is there any other best practice to avoid having duplicate code for using artifactory as a gradle plugin repository?
g
Yes, you can publish setting plugin, same way as project plugin, or you can apply script both in settings and build.gradle. There is also init.gradle way to do that, but they are system level configs
g
That sounds great, thanks!! However, I think it won't solve my problem. I want to write an extension for using the company internal artifactory and I want to use this extension in all our projects
g
Published settings plugin should solve this
Or even script (Gradle also supports loading and applying scripts by url)
g
Do you have any link to Gradle documentation about both?
g
About what exactly?
g
How to write settings plugins and applying scripts by url