Skip to content

Commit

Permalink
tzdbPlatform
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Pelech committed Jan 19, 2022
1 parent 87d2ab5 commit dcde617
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions sbt-tzdb/src/main/scala/io/github/sbt/tzdb/SbtTzdb.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dcde617

Please sign in to comment.