Callum Rogers
04/14/2025, 2:12 PMConfiguration
with custom attributes a la https://docs.gradle.org/current/userguide/cross_project_publications.html#sec:variant-aware-sharing? Or is there some other way to safely read data from other projects?Adam
04/14/2025, 2:13 PMMartin
04/14/2025, 2:14 PMProject.name
but that's about it 😅Callum Rogers
04/14/2025, 2:15 PMCallum Rogers
04/14/2025, 2:15 PMMartin
04/14/2025, 2:17 PMConfiguration
dance usually works for my use casesAdam
04/14/2025, 2:19 PMI think with the build services feels like there may be timing issuesIt depends on what data you want to share. It will be fine if the BuildService just collects data using the Provider API, and the data is only computed during task execution.
Adam
04/14/2025, 2:20 PMCallum Rogers
04/14/2025, 2:21 PMMartin
04/14/2025, 2:21 PMthe problem with BuildServices is they mandate the buildscript classpath is identical for all buildscripts.Good old https://github.com/gradle/gradle/issues/17559
Callum Rogers
04/14/2025, 2:22 PMCallum Rogers
04/14/2025, 2:22 PMephemient
04/14/2025, 2:23 PMephemient
04/14/2025, 2:24 PMMartin
04/14/2025, 2:24 PMI’m currently trying to build something where project A needs to use some information in projects that are dependents of project A (ie the other projects that depend on A)I've given up on having a "smart" way to do this, I force my users to declare the two way dependency
Martin
04/14/2025, 2:24 PMCallum Rogers
04/14/2025, 2:25 PMI’ve given up on having a “smart” way to do this, I force my users to declare the two way dependencyIdeally they would, unfortunately there are ~4000 repos and 1000 users to deal with, so need to do something automatically
Martin
04/14/2025, 2:26 PMMartin
04/14/2025, 2:27 PMCallum Rogers
04/14/2025, 2:27 PMMartin
04/14/2025, 2:29 PMMartin
04/14/2025, 2:29 PMCallum Rogers
04/14/2025, 2:30 PMPhilip W
04/14/2025, 8:22 PMMartin
04/14/2025, 8:27 PMPhilip W
04/14/2025, 8:30 PMMartin
04/14/2025, 8:31 PMMartin
04/14/2025, 8:31 PMMartin
04/14/2025, 8:31 PMPhilip W
04/14/2025, 8:33 PMMartin
04/14/2025, 8:35 PMCallum Rogers
04/15/2025, 10:53 AMAlex Semin
04/16/2025, 1:53 PMAlex Semin
04/16/2025, 1:55 PMI filed https://github.com/gradle/gradle/issues/29037 at the time@Martin, the issue describes a mechanism that you’d like to have, but only touches on the actual use cases. Do you have anything else in mind, rather than aggregation of things from (subset) of subprojects in a parent / root project? In other words, would the aggregation use-case cover your needs? (https://github.com/gradle/gradle/issues/29403)
Callum Rogers
04/16/2025, 1:57 PMI do notice that it’s possible to enumerate other projects and declare a dependency (with appropriate attributes) on each, but I don’t notice an easy way to filter to just projects that create the given artifact. We can setthis is basically what I’m trying - if there was a built in way to do this, it would be greatisLenient(true)
Alex Semin
04/16/2025, 2:00 PMMartin
04/16/2025, 2:03 PMMartin
04/16/2025, 2:04 PMMartin
04/16/2025, 2:08 PMAlex Semin
04/16/2025, 2:24 PMTalking BCV + publishing examples, aggregating accross all projects feels bad, what I want is individual project to register themselves to the “root” project: not all sub-projects want to publish or track their APIWhat is BCV? What are you trying to achieve by letting individual projects register themselves in the root?
Martin
04/16/2025, 2:25 PMMartin
04/16/2025, 2:26 PMMartin
04/16/2025, 2:27 PMPhilip W
04/16/2025, 2:27 PMMartin
04/16/2025, 2:27 PMMartin
04/16/2025, 2:30 PMAlex Semin
04/16/2025, 2:31 PMPhilip W
04/16/2025, 2:32 PMMartin
04/16/2025, 2:32 PMMartin
04/16/2025, 2:33 PMMartin
04/16/2025, 2:33 PMPhilip W
04/16/2025, 2:33 PMMartin
04/16/2025, 2:34 PMMartin
04/16/2025, 2:35 PMMartin
04/16/2025, 2:35 PMisLenient
feels the wrong tool