Skip to content

Commit bc4ba2e

Browse files
author
Michel Davit
committed
Update tensorflow-metadata to 1.15.0
1 parent f779fba commit bc4ba2e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.sbt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ val scalaCollectionCompatVersion = "2.12.0"
4242
val scalacheckVersion = "1.17.0"
4343
val shapelessVersion = "2.3.12"
4444
val slf4jVersion = "2.0.13"
45-
val tensorflowMetadataVersion = "1.10.0"
45+
val tensorflowMetadataVersion = "1.15.0"
4646
val tensorflowVersion = "0.5.0"
4747

4848
// project
@@ -229,16 +229,17 @@ ThisBuild / mimaBinaryIssueFilters ++= Seq(
229229
ThisBuild / tlVersionIntroduced := Map("3" -> "0.8.0")
230230

231231
// protobuf
232+
val protocJavaSourceManaged =
233+
settingKey[File]("Default directory for java sources generated by protoc.")
232234
ThisBuild / PB.protocVersion := protobufVersion
233235
lazy val scopedProtobufSettings = Def.settings(
234236
PB.targets := Seq(
235-
PB.gens.java -> (ThisScope.copy(config = Zero) / sourceManaged).value /
236-
"compiled_proto" /
237-
configuration.value.name
237+
PB.gens.java(protobufVersion) -> Defaults.configSrcSub(protocJavaSourceManaged).value
238238
),
239239
managedSourceDirectories ++= PB.targets.value.map(_.outputPath)
240240
)
241241
lazy val protobufSettings = Seq(
242+
protocJavaSourceManaged := sourceManaged.value / "compiled_proto",
242243
PB.additionalDependencies := Seq(
243244
"com.google.protobuf" % "protobuf-java" % protobufVersion % Provided,
244245
"com.google.protobuf" % "protobuf-java" % protobufVersion % Test

0 commit comments

Comments
 (0)