io.github.crimix.replace-placeholders
一个Gradle插件,它配置Java插件的ProcessResources任务,使用前缀属性动态替换占位符
https://github.com/Crimix/ReplacePlaceholdersPlugin
来源:https://github.com/Crimix/ReplacePlaceholdersPlugin
使用插件DSL
plugins {
id("io.github.crimix.replace-placeholders") version "2.0"
}
使用旧插件应用程序
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org.cn/m2/")
}
}
dependencies {
classpath("io.github.crimix:ReplacePlaceholdersPlugin:2.0")
}
}
apply(plugin = "io.github.crimix.replace-placeholders")