Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.elodina:xml-avro:'
}
dependencies {
implementation("com.github.elodina:xml-avro:")
}
<dependency>
<groupId>com.github.elodina</groupId>
<artifactId>xml-avro</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.elodina" % "xml-avro" % ""
:dependencies [[com.github.elodina/xml-avro ""]]
This project provides Converter to convert generic xsd/xml to asvc/avro files. Avro schema and avro file are generated from xsd schema and xml file.
Additionally it includes simple schemaless converter that converts xml to avro and avro to xml.
Usage:
XML Avro converter.
Usage: "{-d|--debug} {-b|--baseDir <baseDir>} <xsdFile> <xmlFile> {<avscFile>} {<avroFile>}"
Schema-based converter currently only supports conversion in one direction: from xml to avro.
Converter has following restriction:
Usage:
{avro|xml} <inFile> <outFile>
Note: simple converter uses predefined general avro schema located at src/ly/stealth/xmlavro/simple/xml.avsc