From f77522e42fb6ac80733b21ffbf8c589cbc4bd421 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Wed, 5 Jul 2023 17:05:22 +0200 Subject: [PATCH] Fix dependencies --- .../src/main/kotlin/org/pgpainless/wot/cli/WotCLI.kt | 5 +++-- pgpainless-wot/build.gradle | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pgpainless-wot-cli/src/main/kotlin/org/pgpainless/wot/cli/WotCLI.kt b/pgpainless-wot-cli/src/main/kotlin/org/pgpainless/wot/cli/WotCLI.kt index 5469fb20..bb0a6ed3 100644 --- a/pgpainless-wot-cli/src/main/kotlin/org/pgpainless/wot/cli/WotCLI.kt +++ b/pgpainless-wot-cli/src/main/kotlin/org/pgpainless/wot/cli/WotCLI.kt @@ -68,10 +68,11 @@ class WotCLI: Callable { private val referenceTime: ReferenceTime get() { - return if (time == null) { + val cTime = time + return if (cTime == null) { ReferenceTime.now() } else { - val date = DateUtil.parseUTCDate(time) + val date = DateUtil.parseUTCDate(cTime) ReferenceTime.timestamp(date) } } diff --git a/pgpainless-wot/build.gradle b/pgpainless-wot/build.gradle index db8b2818..f94058d0 100644 --- a/pgpainless-wot/build.gradle +++ b/pgpainless-wot/build.gradle @@ -45,7 +45,7 @@ dependencies { exclude(group: "org.pgpainless", module: "pgpainless-core") } - implementation(project(":pgpainless-core")) + api(project(":pgpainless-core")) api(project(":wot-dijkstra")) }