Stefano Zanella
08/01/2024, 1:34 PMpythonProject {
// ... additional extension properties here
dependencies {
implementation(":langchain-community:0.18.1")
implementation(project(":grpc:stub:python"))
}
}
The dependencies declared would then be processed by a task that puts them into a file and let python do the actual resolution (here the behavior departs from the standard dependency resolution mechanism).
I've looked into custom dependency blocks, but that seems to hook into Gradle's standard artifact resolution and download, so I'm currently wondering what would be the best approach to model this. Is it better if I create my own container object? If so, what's the best way to enable calling the implementation function inside the extension block? Or is there a way to tweak the behavior of the default dependency resolution mechanism so that only project dependencies are resolved to an actual artifact while the others are ignored?
Any hints are much appreciatedVampire
08/01/2024, 2:15 PMSelfResolvingDependency that then can use Python for the actual resolutionStefano Zanella
08/01/2024, 2:16 PMVampire
08/01/2024, 2:23 PMFileCollectionDependency then?Stefano Zanella
08/01/2024, 2:24 PMrequirements.txt file that python can use to resolve itStefano Zanella
08/01/2024, 2:25 PMFileCollectionDependency , how do I set that up in a custom plugin extension? I'm a bit at a loss there, and the documentation is helping me only up to a pointVampire
08/01/2024, 2:27 PMnpm function that produces a dependency that is both FileCollectionDependency and SelfResolvingDependency and that is resolved through NPM I think.Stefano Zanella
08/01/2024, 2:28 PMVampire
08/01/2024, 2:29 PMStefano Zanella
08/01/2024, 2:29 PMVampire
08/01/2024, 2:48 PMVampire
08/01/2024, 3:22 PMVampire
08/01/2024, 3:23 PMStefano Zanella
08/01/2024, 6:40 PMVampire
08/01/2024, 10:47 PM