Skip to content

Commit 5c8c0cf

Browse files
committed
Update codacy plugins api with optional version
1 parent ba40020 commit 5c8c0cf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resolvers += "Bintray Typesafe Repo" at "http://dl.bintray.com/typesafe/maven-re
1919
libraryDependencies ++= Seq(
2020
"com.typesafe.play" %% "play-json" % "2.4.8",
2121
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
22-
"com.codacy" %% "codacy-plugins-api" % "1.0.10" withSources(),
22+
"com.codacy" %% "codacy-plugins-api" % "1.0.11" withSources(),
2323
"com.github.pathikrit" %% "better-files" % "2.17.1" withSources()
2424
)
2525

src/main/scala/codacy/docker/api/JsonApi.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ trait JsonApi {
7676
implicit lazy val toolNameFormat = Format(Reads.StringReads.map(Tool.Name),
7777
Writes((v: Tool.Name) => Json.toJson(v.value))) //Json.format[Tool.Name]
7878

79+
implicit lazy val toolVersionFormat = Format(Reads.StringReads.map(Tool.Version),
80+
Writes((v: Tool.Version) => Json.toJson(v.value))) //Json.format[Tool.Version]
81+
7982
implicit lazy val sourceFileFormat = Format(Reads.StringReads.map(Source.File),
8083
Writes((v: Source.File) => Json.toJson(v.path))) //Json.format[Source.File]
8184

0 commit comments

Comments
 (0)