Skip to content

Commit 78cb1eb

Browse files
Adds the capacity to compile the library build info, which now is available in runtime
1 parent bf5bc48 commit 78cb1eb

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

src/main/scala/org/scalaexercises/exercises/model.scala

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ trait Library {
1818
def color: Option[String]
1919
def sections: List[Section]
2020
def timestamp: String
21+
def buildMetaInfo: BuildInfo
22+
}
23+
24+
/** Library Build Metadata Information
25+
*/
26+
trait BuildInfo {
27+
def resolvers: List[String]
28+
def libraryDependencies: List[String]
2129
}
2230

2331
/** A section in a library.
@@ -57,13 +65,14 @@ trait Exercise {
5765

5866
// default case class implementations
5967
case class DefaultLibrary(
60-
owner: String,
61-
repository: String,
62-
name: String,
63-
description: String,
64-
color: Option[String],
65-
sections: List[Section] = Nil,
66-
timestamp: String
68+
owner: String,
69+
repository: String,
70+
name: String,
71+
description: String,
72+
color: Option[String],
73+
sections: List[Section] = Nil,
74+
timestamp: String,
75+
buildMetaInfo: BuildInfo
6776
) extends Library
6877

6978
case class DefaultContribution(

0 commit comments

Comments
 (0)