pablisco
08/10/2019, 1:11 PMbuildSrc as a dependendies.kt file. However we have tests inside buildSrc so the build.gradle.kts inside buildSrc has dependencies too. Anyone has or can think of a way to use the dependencies from the build script in the buildSrc folder?mbonnin
08/10/2019, 1:21 PMgildor
08/10/2019, 4:32 PMgildor
08/10/2019, 4:33 PMpablisco
08/10/2019, 4:36 PMkts instead of a kt and then apply the script with the dependencies. Then have to apply the script to all the build scripts, but can be done inside a allProjects {} block. Not sure if the autocomplete would work on that case...pablisco
08/10/2019, 4:38 PMbuildSrc unless you have internal pluginspablisco
08/10/2019, 10:10 PMDon't know how to generate outer expression: Class: class Libraries
🤔
The dependencies file has something like:
object Libraries {
...
}
It looks like we may not be able to declare new classes in a *.gradle.kts file 😞pgreze
08/11/2019, 5:35 AMpablisco
08/11/2019, 8:21 AMgildor
08/11/2019, 1:04 PM.properties file, read it from buildSrc/build.gradle and from dependencies.ktlouiscad
08/11/2019, 1:11 PMxxxx.properties filegildor
08/11/2019, 2:13 PMpgreze
08/11/2019, 3:13 PMpgreze
08/11/2019, 3:14 PMgildor
08/11/2019, 3:14 PMpgreze
08/11/2019, 3:16 PMgildor
08/11/2019, 3:16 PMpgreze
08/11/2019, 3:19 PMcannot use declarations from this script easily I believe you, I never stopped facing strange issues with Kotlin DSL.gildor
08/11/2019, 3:20 PMapply is runtime application, so essentially compiler don’t know content of this scriptgildor
08/11/2019, 3:22 PMabout type safety, properties file is even worse IMHONo, if you use property delegation syntax> I actually mean not type safety in general, just that it will work in terms of adding this to scope of current script, but you just have no way to access those members
pablisco
08/11/2019, 3:25 PMobject singletons that we use to namespace each type of dependencies 🤔pgreze
08/11/2019, 3:25 PMgildor
08/11/2019, 3:26 PMpablisco
08/11/2019, 3:38 PMgildor
08/11/2019, 5:57 PMpablisco
08/11/2019, 11:54 PMbuildSrc and some of the code in there I'm planning to refactor to use extension functions. Plus, probably makes sense to move the tests for the build code in buildSrc to a different module instead of having them there. Leaving the code in there.gildor
08/12/2019, 2:40 AMpablisco
08/12/2019, 8:33 AMbuildSrc foldergildor
08/12/2019, 12:23 PM