-
Notifications
You must be signed in to change notification settings - Fork 4
/
tracing.sbt
26 lines (26 loc) · 955 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
26
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 / "cem-meta.conf"
IO.write(
file,
s"""code-examples-manager-config {
| meta-info {
| project-name = "$projectName"
| project-code = "cem"
| project-group = "$projectGroup"
| project-page = "$projectPage"
| build-version = "$projectVersion"
| build-date-time = "$buildDateTime"
| build-uuid = "$buildUUID"
| contact-email = "crosson.david@gmail.com"
| }
|}""".stripMargin
)
Seq(file)
}.taskValue