From dcde617412a0b108df6eb35b1a7655c87d484d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Pelech?= Date: Wed, 19 Jan 2022 22:47:02 +0100 Subject: [PATCH] tzdbPlatform --- .../scala/io/github/sbt/tzdb/SbtTzdb.scala | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/sbt-tzdb/src/main/scala/io/github/sbt/tzdb/SbtTzdb.scala b/sbt-tzdb/src/main/scala/io/github/sbt/tzdb/SbtTzdb.scala index 9f493f0..c55a42e 100644 --- a/sbt-tzdb/src/main/scala/io/github/sbt/tzdb/SbtTzdb.scala +++ b/sbt-tzdb/src/main/scala/io/github/sbt/tzdb/SbtTzdb.scala @@ -92,19 +92,20 @@ object TzdbPlugin extends AutoPlugin { import cats.syntax.all._ val tzdbData: JFile = resourcesManaged / "tzdb" - val ttbp = IOTasks.copyProvider(sourceManaged, - tzdbPlatform.name, - "TzdbZoneRulesProvider.scala", - "org.threeten.bp.zone", - false + val ttbp = IOTasks.copyProvider( + sourceManaged, + tzdbPlatform.name, + "TzdbZoneRulesProvider.scala", + "org.threeten.bp.zone", + false + ) + val jt = IOTasks.copyProvider( + sourceManaged, + tzdbPlatform.name, + "TzdbZoneRulesProvider.scala", + "java.time.zone", + true ) - val jt = - IOTasks.copyProvider(sourceManaged, - tzdbPlatform.name, - "TzdbZoneRulesProvider.scala", - "java.time.zone", - true - ) val providerCopy = if (includeTTBP) List(ttbp, jt) else List(jt) (for { _ <- IOTasks.downloadTZDB(log, resourcesManaged, dbVersion)