https://kotlinlang.org logo
Title
j

jlleitschuh

09/21/2017, 4:03 PM
Can the
pluginManagement
in
settings.gradle
be used with
apply from: "someKtsFile.gradle.kts"
?
b

bamboo

09/21/2017, 4:56 PM
If you by that you mean applying a Kotlin DSL script from
settings.gradle
, no.
j

jlleitschuh

09/21/2017, 4:58 PM
Can you apply a groovy script? Basically, it still comes down to how would I use
pluginManagement
when I have a corporate maven mirror that I want to use to resolve my dependencies and that maven mirror has a username and password I need to make sure to use.
And how can I share that code so I don't need to duplicate that repository configuration in multiple places.
m

mkobit

09/21/2017, 5:16 PM
@jlleitschuh i think an init script can be written in groovy (not sure about kotlin but im guessing not) - https://docs.gradle.org/current/userguide/init_scripts.html#sec:writing_an_init_script you could also write an init script plugin and i think that could be written in kotlin - https://docs.gradle.org/current/userguide/init_scripts.html#sec:init_script_plugins and https://docs.gradle.org/current/userguide/init_scripts.html#sec:custom_classpath