Kuronometer

Gradle Plugin used to measure build times.

License

License

NONE
GroupId

GroupId

com.github.pedrovgs
ArtifactId

ArtifactId

kuronometer
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Kuronometer
Gradle Plugin used to measure build times.
Project URL

Project URL

https://github.com/pedrovgs/kuronometer
Source Code Management

Source Code Management

https://github.com/pedrovgs/kuronometer

Download kuronometer

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.pedrovgs/kuronometer/ -->
<dependency>
    <groupId>com.github.pedrovgs</groupId>
    <artifactId>kuronometer</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.pedrovgs/kuronometer/
implementation 'com.github.pedrovgs:kuronometer:0.1.1'
// https://jarcasting.com/artifacts/com.github.pedrovgs/kuronometer/
implementation ("com.github.pedrovgs:kuronometer:0.1.1")
'com.github.pedrovgs:kuronometer:jar:0.1.1'
<dependency org="com.github.pedrovgs" name="kuronometer" rev="0.1.1">
  <artifact name="kuronometer" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.pedrovgs', module='kuronometer', version='0.1.1')
)
libraryDependencies += "com.github.pedrovgs" % "kuronometer" % "0.1.1"
[com.github.pedrovgs/kuronometer "0.1.1"]

Dependencies

compile (3)

Group / Artifact Type Version
com.github.pedrovgs : kuronometer-core jar 0.1.1
org.scala-lang : scala-library jar 2.12.2
joda-time : joda-time jar 2.9.9

test (3)

Group / Artifact Type Version
org.scalatest : scalatest_2.12 jar 3.0.3
org.scalamock : scalamock-scalatest-support_2.12 jar 3.5.0
org.pegdown : pegdown jar 1.4.2

Project Modules

There are no modules declared in this project.

Kuronometer Build Status

Kuronometer is a Gradle Plugin developed using purely functional programming in Scala. Using this Gradle plugin you can see how long you've been compiling your project during the last day or since the last clean execution using just one command:

After configuring this plugin execute any build from Android Studio or your terminal:

./gradlew assemble

Then check the build time gathered using the following commands:

./gradlew totalBuildTime

or

./gradlew todayBuildTime

screencast

Additionally, Kuronometer is going to report your build time to a remote service we will use to show how long developers around the world have been building software. Soon, we will publish a real time chronometer with the amount of time we've been building software here. Your project data can be reported anonymously, so don't be afraid of using this project. Server side code can be found here.

compilingTime

Installation

Apply the plugin in your build.gradle:

buildscript {
  repositories {
    mavenCentral()
  }
  dependencies {
    classpath 'com.github.pedrovgs:kuronometer:0.1.1'
  }
}

apply plugin: 'com.github.pedrovgs.kuronometer'

Configuration

You just need to indicate the project platform being used:

...
apply plugin: 'com.github.pedrovgs.kuronometer'

kuronometer {
    platformName = 'Android' //This value can be Android, Java or Scala
}

If you need any advanced configuration:

kuronometer {
    //Config used to indicate the platform or language name. By default the value configured is Java.
    platformName = 'Android'
    //Config used to attach or not sensitive information before to being reported. By default is true.
    //This value can be true or false.
    reportProjectInfo = true
    //Config used to send or not the build report to the kuronometer server. By default is true.
    //This value can be true or false.
    reportDataRemotely = true
    //Config used to show a message after the build execution showing the report execution result. By default is false.
    //This value can be true or false.
    verbose = true
}

Inside the kuronometer-consumer and the kuronometer-android-consumer folders you can find two configuration examples.

Build and test this project

To build this and runt the unit and integration tests execute ./gradlew build.

Run this project

To install this plugin in a local repository and test it from any consumer execute these commands:

./gradlew install
cd kuronometer-consumer
./gradlew build

Release a new version

Before to release a new kuronometer version remember to update the config build files:

gradle.properties
kuronometer-android-consumer/build.gradle
kuronometer-consumer/build.gradle
kuronometer-core/build.gradle
kuronometer/build.gradle
README.md

Then execute ./gradlew clean build uploadArchives. Remember to configure your ~/.gradle/gradle.properties file.

Related projects:

Developed By

Follow me on Twitter Add me to Linkedin

License

Copyright 2017 Pedro Vicente Gómez Sánchez

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1