Colton Idle
10/23/2025, 12:27 AMVampire
10/23/2025, 12:31 AMplugins { ... } and using it inside?Vampire
10/23/2025, 12:31 AMplugins { ... } block is extracted and evaluated separately, so it cannot use anything outside the block.Colton Idle
10/23/2025, 12:43 AMVampire
10/23/2025, 1:00 AMVampire
10/23/2025, 1:01 AMgradle.properties, or you could abuse a buildscript block and ext properties like
buildscript {
ext.foo = '+'
}
plugins {
id "foo" version "$foo"
}ephemient
10/23/2025, 1:22 AMVampire
10/23/2025, 1:30 AMColton Idle
10/23/2025, 3:35 AMysb33r
10/23/2025, 8:26 AMYou can either put the property to the, or you could abuse agradle.propertiesblock andbuildscriptproperties likeext
gradle.properties is definitely the way to go in your case. It is a good intermediate to go before stepping to the version catalog.Martin
10/23/2025, 2:06 PMephemient
10/23/2025, 2:29 PMephemient
10/23/2025, 2:30 PMVampire
10/23/2025, 2:37 PMColton Idle
10/23/2025, 7:03 PMVampire
10/23/2025, 8:35 PM