From 5d79cfbf0d154a9067c72adce938870cb34a2e18 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 10 Jan 2023 10:55:38 +0100 Subject: [PATCH] add spotless plugin --- build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle b/build.gradle index 8b03634c7..26a8a2bac 100644 --- a/build.gradle +++ b/build.gradle @@ -7,10 +7,13 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:7.4.1' + classpath "com.diffplug.spotless:spotless-plugin-gradle:6.12.1" } } apply plugin: 'com.android.application' +apply plugin: "com.diffplug.spotless" + repositories { google() @@ -30,6 +33,14 @@ configurations { quicksyImplementation } +spotless { + ratchetFrom '2.12.0' + java { + target '**/*.java' + googleJavaFormat('1.8').aosp().reflowLongStrings() + } +} + dependencies { implementation 'androidx.viewpager:viewpager:1.0.0'