Table of Contents
Build Info 🔗
Generates a Scala BuildInfo object with build metadata constants.
Add it to your plugins list:
import "https://sake92.github.io/deder-plugins/config/v0.17.0/BuildInfoPlugin.pkl" as BI
plugins {
new BI.BuildInfoPlugin {
config = new BI.BuildInfoPluginConfig {
modules = new Mapping {
["my-module"] = new BI.ModuleOverride {
extra = new Mapping {
["appName"] = "my-service"
["buildProfile"] = "dev"
}
}
}
}
}
}
Here are the defaults if you need to tweak them:
plugins {
new BI.BuildInfoPlugin {
config = new BI.BuildInfoPluginConfig {
defaults = new BI.ModuleDefaults {
enabled = true
packageName = null
objectName = "BuildInfo"
includeGitHash = false
includeTimestamp = false
extra = new Mapping {}
}
modules = new Mapping {}
}
}
}
Schema 🔗
Tasks 🔗
buildInfoGenerate(source generator)