Commit 98c144a
authored
### Overview
- Follow up on @IceBlizz6 comment from PR
#865
The change moves responsibilities of generating Q classes to each
individual module, whether that module is in a local project or a
library dependency. If a module is expecting a class (like a base entity
`@MappedSuperclass`) to be used in a client project, it must incorporate
KSP processing and package the generated Q class in its artifact. To
achieve this, the superclasses are still stored as a `QueryModel`, but
the files are not written if the `containingFile` is null.
### Testing
Local project (and 2 test projects from the original ticket) were
updated with this change and ran all Q class generation successfully for
every build
File tree
1 file changed
+8
-1
lines changed- querydsl-tooling/querydsl-ksp-codegen/src/main/kotlin/com/querydsl/ksp/codegen
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
39 | | - | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| |||
0 commit comments