Generating sources from IDLs stored in Compendium
compendium is a standalone solution, implemented as an HTTP service, that provides storage, conversion and client generation for your schemas in a format-agnostic fashion.
sbt-mu-srcgen provides a feature that enables the user to store and get IDL definitions from compendium.
This section will provide instructions about how to configure the sbt settings to use compendium. We are assuming you have a compendium instance running. If not, please check the compendium microsite. Also, the configuration related to the IDL type could be checked on:
Configure sbt plugin
Settings related to compendium interaction are:
||ExecutionMode||Execution mode of the plugin. If
||String||Compendium server url||
||Seq[ProtocolAndVersion]||Protocol identifiers to retrieve from compendium.
So in order to use compendium, you’ll need to add those settings in your
muSrcGenCompendiumProtocolIdentifiers := List(ProtocolAndVersion("example1", None)) muSrcGenExecutionMode := Compendium
If needed, you can also point out to your compendium server if it’s not on the default value,
muSrcGenCompendiumServerUrl := "http://localhost:47047" muSrcGenCompendiumProtocolIdentifiers := List(ProtocolAndVersion("example2", Some(2))) muSrcGenExecutionMode := Compendium