From ff973164e5dbc6a1b34c0939c990d1656f44791d Mon Sep 17 00:00:00 2001 From: Inaki Villar Date: Thu, 20 Aug 2020 18:36:59 -0700 Subject: [PATCH] adding filter 6.6 in the build scan listener --- .../kotlin/com/cdsap/talaiot/metrics/GradleScanLinkMetric.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/talaiot/src/main/kotlin/com/cdsap/talaiot/metrics/GradleScanLinkMetric.kt b/talaiot/src/main/kotlin/com/cdsap/talaiot/metrics/GradleScanLinkMetric.kt index 524af836..e109bf49 100644 --- a/talaiot/src/main/kotlin/com/cdsap/talaiot/metrics/GradleScanLinkMetric.kt +++ b/talaiot/src/main/kotlin/com/cdsap/talaiot/metrics/GradleScanLinkMetric.kt @@ -20,7 +20,8 @@ class GradleScanLinkMetric : BuildResultMetric( val services = gradleInternal.services when { - GradleVersion.current() > GradleVersion.version("5.0") -> { + GradleVersion.current() > GradleVersion.version("5.0") + && GradleVersion.current() < GradleVersion.version("6.6") -> { services.get( DefaultBuildScanEndOfBuildNotifier::class.java ) as DefaultBuildScanEndOfBuildNotifier