use of io.strimzi.kafka.config.model.ConfigModels in project strimzi by strimzi.
the class KafkaConfigModelGenerator method main.
public static void main(String[] args) throws Exception {
String version = kafkaVersion();
Map<String, ConfigModel> configs = configs();
ObjectMapper mapper = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT).enable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY);
ConfigModels root = new ConfigModels();
root.setVersion(version);
root.setConfigs(configs);
mapper.writeValue(new File(args[0]), root);
}
use of io.strimzi.kafka.config.model.ConfigModels in project strimzi-kafka-operator by strimzi.
the class KafkaConfigModelGenerator method main.
public static void main(String[] args) throws Exception {
String version = kafkaVersion();
Map<String, ConfigModel> configs = configs();
ObjectMapper mapper = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT).enable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY);
ConfigModels root = new ConfigModels();
root.setVersion(version);
root.setConfigs(configs);
mapper.writeValue(new File(args[0]), root);
}
Aggregations