Slackbot
05/19/2023, 6:42 PMAdam
05/19/2023, 7:40 PMbuild.gradle.kts
file, or are you writing a plugin? What variables do you want to operate on?Shaun Reich
05/19/2023, 8:17 PMobject SreichTestMap {
val mapThing = "a" to "z"
}
it's then my expectation that i can apply the plugin to say, a different project and right in my build.gradle.kts i can start typing println(SreichTestMap.mapThing), and otherwise operate on it type safelyShaun Reich
05/19/2023, 8:18 PMAdam
05/19/2023, 9:11 PMSreichTestMap
. When you apply your plugin to a project, then the JAR will be applied to the build script’s classpath. Since SreichTestMap
is public, then it will be accessible in the build script.Shaun Reich
05/19/2023, 9:18 PMShaun Reich
05/19/2023, 9:18 PMShaun Reich
05/19/2023, 9:18 PMAdam
05/19/2023, 9:40 PMAdam
05/19/2023, 9:42 PMShaun Reich
05/19/2023, 10:10 PMVampire
05/19/2023, 10:48 PM