Search Gradle plugins

Owner: Ellet

A Gradle plugin to generate Java/Kotlin object constants to reference Minecraft resources or assets, such as en_us.json in code in a type-safe way without any hardcoding

https://github.com/EchoEllet/mc-safe-resources-gradle

Sources: https://github.com/EchoEllet/mc-safe-resources-gradle

Version 0.0.2 (latest)

Created 12 December 2025.

A Gradle plugin to generate Java/Kotlin object constants to reference Minecraft resources or assets, such as en_us.json in code in a type-safe way without any hardcoding

Add this plugin to your build using the plugins DSL:

plugins {
  id("dev.echoellet.mc-safe-resources") version "0.0.2"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("dev.echoellet.mc-safe-resources:dev.echoellet.mc-safe-resources.gradle.plugin:0.0.2")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("dev.echoellet.mc-safe-resources")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("dev.echoellet.mc-safe-resources:dev.echoellet.mc-safe-resources.gradle.plugin:0.0.2")
      }
    }
    
    apply(plugin = "dev.echoellet.mc-safe-resources")
  • Applying plugins to all subprojects .