Class SourcesPlugin

java.lang.Object
software.amazon.smithy.build.plugins.SourcesPlugin
All Implemented Interfaces:
SmithyBuildPlugin

public final class SourcesPlugin extends Object implements SmithyBuildPlugin
Copies model sources into the sources plugin.

Model sources are model components that were defined in one of the directories marked as "sources" in the original model or a model component that is found in the updated model but not the original model.

When a JAR is provided as a source, the models contained within the JAR are extracted into the sources directory under a directory with the same name as the JAR without the ".jar" extension; the JAR is not copied into the sources directory. For example, given a JAR at "/foo/baz.jar" that contains a "bar.smithy" file, a source will be created named "baz/bar.smithy".

This plugin can only run if an original model is provided.

  • Constructor Details

    • SourcesPlugin

      public SourcesPlugin()
  • Method Details