Nikky
06/08/2021, 12:03 PMversionFor
to add Project
as a receiver in groovy code without changes to usages ?
or some way to extract which buildscript the call came from with reflection ?louiscad
06/08/2021, 12:28 PMlouiscad
06/08/2021, 12:29 PMNikky
06/08/2021, 1:12 PMbuild.gradle
fileNikky
06/08/2021, 1:12 PM@Deprecated
wit ha proper ReplaceWith
might be enoughNikky
06/08/2021, 1:13 PMlouiscad
06/08/2021, 1:13 PMWait, there's a way to have receiver syntax in Groovy DSL?
Nikky
06/08/2021, 1:14 PMlouiscad
06/08/2021, 1:14 PMNikky
06/08/2021, 1:15 PMAn extension module is a JAR file with classes that provide extra methods to existing other classes like in the JDK or third-party libraries. Groovy uses this mechanism to add for example extra methods to theso.. if we set this up right.. maybe we can provideclass.File
versionFor
extensions on Project
Nikky
06/08/2021, 1:16 PMlouiscad
06/08/2021, 1:17 PMNikky
06/08/2021, 1:18 PM0.10.0
groovy buildscriptsNikky
06/08/2021, 1:20 PM