Skip to content

Adding FL to the Dev Environment

The_Fireplace edited this page Jun 24, 2022 · 5 revisions

To use this with your mod, include the following in build.gradle:

Fabric:

repositories {
  maven { url 'https://maven.shedaniel.me/' }
  maven { url 'https://maven.terraformersmc.com/releases/' }
}
dependencies {
  modCompileOnly "dev.the-fireplace:Fireplace-Lib-Fabric:${project.fireplacelib_version}:api"
  modRuntimeOnly "dev.the-fireplace:Fireplace-Lib-Fabric:${project.fireplacelib_version}"
  // Annotation Processor is only required if you're going to create your own Dependency Injections using @Implementation
  annotationProcessor "dev.the-fireplace:Annotated-DI-Fabric-Processor:${project.annotateddi_version}"
}

Forge:

repositories {
  maven { url 'https://maven.shedaniel.me/' }
}
dependencies {
    implementation(fg.deobf("dev.the-fireplace:Annotated-DI-Forge:${project.annotateddi_version}"))
    compileOnly(fg.deobf("dev.the-fireplace:Fireplace-Lib-Forge:${project.fireplacelib_version}:api"))
    runtimeOnly(fg.deobf("dev.the-fireplace:Fireplace-Lib-Forge:${project.fireplacelib_version}"))
    annotationProcessor "dev.the-fireplace:Annotated-DI-Forge-Processor:${project.annotateddi_version}"
}

Common module (for multi project builds):

dependencies {
    compileOnly "dev.the-fireplace:Fireplace-Lib-Common:${project.fireplacelib_version}"
}

And in gradle.properties:

fireplacelib_version=<mod version>+<minecraft version>
annotateddi_version=<mod version>+<minecraft version>
Clone this wiki locally