Slackbot
04/08/2022, 8:47 PMdeepy
04/08/2022, 8:49 PMabstract class MyService
@Inject
constructor(objectFactory: ObjectFactory) : BuildService<BuildServiceParameters.None> {
private val dep: MyDependency = objectFactory.newInstance(MyDependency::class.java)
@get:Inject abstract val fileSystemOperations: FileSystemOperations
fun func() {
println(fileSystemOperations) // This works
dep.func() // But this does not
}
}
abstract class MyDependency {
@get:Inject abstract val fileSystemOperations: FileSystemOperations
fun func() {
println(fileSystemOperations)
}
}
CristianGM
04/08/2022, 8:50 PMChris Lee
04/08/2022, 8:50 PMinterface GoLangToolchainParams : BuildServiceParameters {
val cacheService: Property<CacheBuildService>
}
Chris Lee
04/08/2022, 8:50 PMdeepy
04/08/2022, 8:56 PM