Adding class files to project dependencies
Closed this issue · 3 comments
bryan4887 commented
Hello, thanks for the useful plugin. Would you mind showing us how to add the Java codecs .class files to the classpath? Either that or showing how to make the JAR a dependency of the project would be super useful.
The plugin is successfully providing the new gradle tasks, but I don't know how to then link everything together.
Thanks in advance!
vontikov commented
Hi Bryan,
I will provide an example in a couple of days.
Regards,
Vladimir
пт, 15 мая 2020 г., 18:25 Bryan Hernandez <notifications@github.com>:
… Hello, thanks for the useful plugin. Would you mind showing us how to add
the Java codecs .class files to the classpath? Either that or showing how
to make the JAR a dependency of the project would be super useful.
The plugin is successfully providing the new gradle tasks, but I don't
know how to then link everything together.
Thanks in advance!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMUJVJNSVRUPAPXN23MJJ3RRVNG7ANCNFSM4NBVKN6Q>
.
bryan4887 commented
Fantastic! Thank you, Vladmir!
vontikov commented
Hi Bryan,
I've provided the example <https://github.com/vontikov/sbe-example>you
asked me about. In this example program code and generated codecs share the
same source tree, compiled classes share the same jar,
*and sbeGenerateJavaCodecs is *the only plugin task you need to execute
each time you've changed the XML schema.
Another way of using the plugin is placing compiled codecs into a separate
jars - *sbeJavaArchive* task. By default the jar, containing compiled
codecs, will be copied into build/archives folder.
Then the jar may be shared between different projects, usually via an
artifactory.
Regards,
Vladimir Ontikov
сб, 16 мая 2020 г. в 17:53, Bryan Hernandez <notifications@github.com>:
… Fantastic! Thank you, Vladmir!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMUJVIYNSP7XRNV7FQQIQTRR2SFVANCNFSM4NBVKN6Q>
.