Class MojoUtils

java.lang.Object
io.confluent.kafka.schemaregistry.maven.MojoUtils

public class MojoUtils extends Object
  • Constructor Details

    • MojoUtils

      public MojoUtils()
  • Method Details

    • readFile

      public static String readFile(File file, Charset encoding) throws IOException
      Throws:
      IOException
    • defaultSchemaProviders

      public static List<SchemaProvider> defaultSchemaProviders()
      The providers used when none are configured. These accept logical types DDL in addition to the native formats, so that a schema authored as DDL can be validated and compared locally. Registering one still sends the DDL itself -- see UploadSchemaRegistryMojo -- so what gets stored is decided by the registry, not by which providers happen to be configured here.