]> source.dussan.org Git - sonarqube.git/commitdiff
BUILD Switch time tracker plugin.
authorMalena Ebert <malena.ebert@sonarsource.com>
Tue, 1 Dec 2020 11:42:13 +0000 (12:42 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 3 Dec 2020 20:06:38 +0000 (20:06 +0000)
The recent used time tracker plugin is not maintained anymore and it is using gradle features, which will be removed in the next versions.

build.gradle

index b1c5a7ed5aa6dda78e71836668c8b6c685fd1874..1c3b99ec8b46996d039b54e1618ad1beee9afba5 100644 (file)
@@ -7,22 +7,18 @@ plugins {
   id 'com.jfrog.artifactory' version '4.15.1'
   id 'com.github.node-gradle.node' version '1.5.3' apply false
   id 'io.spring.dependency-management' version '1.0.10.RELEASE'
-  id 'net.rdrei.android.buildtimetracker' version '0.11.0'
+  id "com.asarkar.gradle.build-time-tracker" version "2.0.4" apply false
   id 'org.owasp.dependencycheck' version '6.0.1'
   id 'org.sonarqube' version '2.8'
 }
 
 // display a summary of task durations at the end of the build
 if (project.hasProperty('time-tracker')) {
-  apply plugin: 'build-time-tracker'
-  buildtimetracker {
-    reporters {
-      summary {
-        ordered true
-        threshold 1000
-        barstyle 'ascii'
-      }
-    }
+  apply plugin: 'com.asarkar.gradle.build-time-tracker'
+  buildTimeTracker {
+    sort = true
+    maxWidth = 80
+    minTaskDuration = Duration.ofSeconds(1)
   }
 }