This is a set of javadoc patches which add documentation to Mojang's DataFixerUpper library, alongside tooling to apply and generate these patches and publish modified versions of DFU with documentation present.
Add the maven repository to your build.gradle and configure gradle to replace the normal DFU with the modified,
documented variant:
repositories {
exclusiveContent {
forRepository {
maven {
url = uri("https://maven.lukebemish.dev/releases/")
}
}
filter {
includeModule("dev.lukebemish", "documenteddfu")
}
}
}
configurations.configureEach {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'com.mojang' && details.requested.name == 'datafixerupper') {
details.useTarget "dev.lukebemish:documenteddfu:${documentedDfuVersion}"
}
}
}Clone this repository and run the setup task. This will create folders with modified and clean DFU versions, and
apply the javadoc patches to the modified version. Make any modifications you would like to the modified version, and
then run generatePatches to generate doc patches (JSON representations of added/changed docs) from the modified version.