SpineEventEngine / config

Dependencies and build configurations shared among subprojects
https://spine.io
Apache License 2.0
2 stars 3 forks source link

Improve the generation of descriptor set files for "simple" Spine libraries #504

Closed armiol closed 9 months ago

armiol commented 9 months ago

At the moment, not all Spine libraries are able to use Spine McJava plugin — due to the cyclic dependencies otherwise introduced. But simultaneously, libraries like tool-base and base-types provide their own Proto language, and hence, must bring respective descriptor set files with them.

This issue has been addressed very inconsistently throughout the repositories, leading to mis-interpretation of descriptor set files, or failures to locate them at all.

This changeset improves the descriptor set generation by doing the following.

These changes are inspired by the corresponding code in McJava (see JavaProtocConfigurationPlugin). However, in this PR, the code is much simpler, and no extra Gradle tasks is created.

armiol commented 9 months ago

@alexander-yevsyukov PTAL.