From 7bcbaf03d03ceb993e9fc5a2b804e45e35780bd4 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Wed, 9 Mar 2016 20:24:40 -0800 Subject: [PATCH] Java 8 comment. --- .../src/main/kotlin/com/beust/kobalt/api/Kobalt.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/Kobalt.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/Kobalt.kt index 05105dce..3d9a25a8 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/Kobalt.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/Kobalt.kt @@ -82,6 +82,7 @@ public class Kobalt { } val version = kobaltProperties.getProperty(PROPERTY_KOBALT_VERSION) + // Note: Duration is Java 8 only, might need an alternative if we want to support Java < 8 val versionCheckTimeout = Duration.parse( kobaltProperties.getProperty(PROPERTY_KOBALT_VERSION_CHECK_TIMEOUT) ?: "P1D")