Search Gradle plugins

dk.grixie.jinja2.gradle-jinja2-plugin

Gradle plugin for generating files based on Jinja2 templates. The plugin uses jinjava as template engine.

https://github.com/shamus13/gradle-jinja2-plugin

Sources: https://github.com/shamus13/gradle-jinja2-plugin

Version 0.1.2 (latest)

Created 22 January 2023.

Gradle plugin for generating files based on Jinja2 templates. The plugin uses jinjava as template engine.

Add this plugin to your build using the plugins DSL:

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