Slackbot
02/21/2022, 8:41 AMJavi
02/21/2022, 9:16 AMJo Vanthournout
02/21/2022, 9:18 AMplugins {
id 'my.convention.plugin'
}
Jo Vanthournout
02/21/2022, 9:20 AMMyConventionPlugin {
// set some properties on the plugin here
}
Jo Vanthournout
02/21/2022, 9:20 AMJavi
02/21/2022, 9:24 AMJavi
02/21/2022, 9:26 AMJo Vanthournout
02/21/2022, 9:32 AMgrossws
02/21/2022, 10:56 AMbuildSrc/src/main/kotlin/MyExtension.kt
) and create it using project.extensions.create("myExtension", MyExtension::class)
as usual.
All classes defined in precompiled script plugin are scoped to that plugin, iirc. So you need separate class and not precompiled script.Jo Vanthournout
02/21/2022, 11:20 AM