-
Notifications
You must be signed in to change notification settings - Fork 0
/
tracing.sbt
25 lines (25 loc) · 906 Bytes
/
tracing.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Compile / resourceGenerators += Def.task {
val dir = (Compile / sourceManaged).value
val projectName = name.value
val projectGroup = organization.value
val projectPage = homepage.value.map(_.toString).getOrElse("https://github.com/dacr")
val projectVersion = version.value
val buildDateTime = java.time.Instant.now().toString
val buildUUID = java.util.UUID.randomUUID.toString
val file = dir / "webecho-meta.conf"
IO.write(
file,
s"""web-echo {
| meta-info {
| project-name = "$projectName"
| project-group = "$projectGroup"
| project-page = "$projectPage"
| build-version = "$projectVersion"
| build-date-time = "$buildDateTime"
| build-uuid = "$buildUUID"
| contact-email = "[email protected]"
| }
|}""".stripMargin
)
Seq(file)
}.taskValue