Commit cd2dca2
committed
make AOT hints for ELC optional
`spring-data-elasticsearch` is also being pulled in as a dependency of
`spring-data-opensearch`. the latter excludes the transient ELC
dependency since it doesn't need it.
if `spring-data-opensearch` (or any downstream project) wants to use AOT
then spring will automatically also pick up the AOT hints from
`spring-data-elasticsearch` - but so far these reference the ELC classes
which have been excluded by `spring-data-opensearch`, thus resulting in
a `ClassNotFoundException`.
this commit makes the registration of these hints dependent on the
presence of the ELC on the classpath. this has no impact on
`spring-data-elasticsearch` consumers which already make use of AOT but
unblocks the usage of AOT for `spring-data-opensearch` and its
consumers.
see also opensearch-project/spring-data-opensearch#4411 parent 78bef31 commit cd2dca2
1 file changed
Lines changed: 8 additions & 10 deletions
File tree
- src/main/java/org/springframework/data/elasticsearch/client/elc/aot
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 18 | | |
24 | 19 | | |
25 | 20 | | |
26 | | - | |
27 | 21 | | |
28 | 22 | | |
29 | 23 | | |
| |||
38 | 32 | | |
39 | 33 | | |
40 | 34 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
0 commit comments