Search Gradle plugins

io.github.fcat97.dotenv

Generate a module-specific POJO class from .env file for Java and Android projects.

https://github.com/fcat97/dotEnv

Sources: https://github.com/fcat97/dotEnv

Version 0.9.0 (latest)

Created 31 July 2025.

Generate a module-specific POJO class from .env file for Java and Android projects.

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.fcat97.dotenv") version "0.9.0"
}

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("io.github.fcat97.dotenv:io.github.fcat97.dotenv.gradle.plugin:0.9.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.fcat97.dotenv")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.fcat97.dotenv:io.github.fcat97.dotenv.gradle.plugin:0.9.0")
      }
    }
    
    apply(plugin = "io.github.fcat97.dotenv")
  • Applying plugins to all subprojects .