Search Gradle plugins

io.github.crimix.replace-placeholders

A Gradle plugin that configures ProcessResources task from Java Plugin to replace placeholders dynamically using prefixed properties

https://github.com/Crimix/ReplacePlaceholdersPlugin

Sources: https://github.com/Crimix/ReplacePlaceholdersPlugin

Version 2.0 (latest)

2.0

Created 18 June 2022.

A Gradle plugin that configures ProcessResources task from Java Plugin to replace placeholders dynamically using prefixed properties

Using the plugins DSL:

plugins {
  id("io.github.crimix.replace-placeholders") version "2.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.github.crimix:ReplacePlaceholdersPlugin:2.0")
  }
}

apply(plugin = "io.github.crimix.replace-placeholders")

Using the plugins DSL:

plugins {
  id "io.github.crimix.replace-placeholders" version "2.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.github.crimix:ReplacePlaceholdersPlugin:2.0"
  }
}

apply plugin: "io.github.crimix.replace-placeholders"

Learn how to apply plugins to subprojects