From 44f28217946c28d75ac2feaeeb1bec49f045e0d4 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 15 Nov 2021 23:21:57 +0530 Subject: [PATCH] build: upgrade Spotless and enable configuration caching --- gradle.properties | 5 ++++- gradle/libs.versions.toml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index a0268199..4c8416e5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,9 +6,12 @@ org.gradle.parallel=true org.gradle.configureondemand=true org.gradle.caching=true -# Enabling filesystem watching +# Enable filesystem watching org.gradle.vfs.watch=true +# Enable experimental configuration caching +org.gradle.unsafe.configuration-cache=true + # Enable Kotlin incremental compilation kotlin.incremental=true diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3827cb12..f5817e4e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -21,7 +21,7 @@ build-kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31" build-mavenpublish = "com.vanniktech:gradle-maven-publish-plugin:0.18.0" build-okhttp = "com.squareup.okhttp3:okhttp:4.9.0" build-semver = "com.vdurmont:semver4j:3.1.0" -build-spotless = "com.diffplug.spotless:spotless-plugin-gradle:5.16.0" +build-spotless = "com.diffplug.spotless:spotless-plugin-gradle:6.0.0" # Kotlin dependencies kotlin-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }