You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 2, 2026. It is now read-only.
It would be nicer to specify a subproject or dependency containing stub files instead. This has many benefits:
Simpler setup for giant multi-repo projects (today this has to be done by adding a git-clone-shared-components step to the build so we can have a filesystem path instead of a dependency coordinate---very ugly and difficult to get right!)
dependencies {
checkerFrameworkStubs(project(":localStubs")) // stubs from local subproject
checkerFrameworkStubs("mygroup:shared-stubs:1.0.0") // stubs from some common repo
testCheckerFrameworkStubs(project(":testStubs")) // stubs for test libraries
}
Today the way you configure stubs is with the
-Astubs=...option, which takes a filesystem path:It would be nicer to specify a subproject or dependency containing stub files instead. This has many benefits:
testCheckerFrameworkStubs(...)would fit the need in Need to configure an additional .astub file for "test" and/or "testFixtures" #223Example:
dependencies { checkerFrameworkStubs(project(":localStubs")) // stubs from local subproject checkerFrameworkStubs("mygroup:shared-stubs:1.0.0") // stubs from some common repo testCheckerFrameworkStubs(project(":testStubs")) // stubs for test libraries }(This ask is essentially the same as typetools/checker-framework#4058 and typetools/checker-framework#6813.)