From 7234576fb261679a7dc2c8356d4da6c6c4a31709 Mon Sep 17 00:00:00 2001 From: Darshit Chanpura Date: Mon, 21 Aug 2023 13:33:21 -0400 Subject: [PATCH] Adds import order to formatting.gradle Signed-off-by: Darshit Chanpura --- gradle/formatting.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gradle/formatting.gradle b/gradle/formatting.gradle index 3e8120bb..88340057 100644 --- a/gradle/formatting.gradle +++ b/gradle/formatting.gradle @@ -7,6 +7,21 @@ allprojects { target '**/*.java' removeUnusedImports() + importOrder( + 'de.thetaphi', + 'com.carrotsearch', + 'com.fasterxml', + 'com.avast', + 'com.sun', + 'com.maxmind|com.github|com.networknt|groovy|nebula', + 'org.antlr', + 'software.amazon', + 'com.azure|com.microsoft|com.ibm|com.google|joptsimple|org.apache|org.bouncycastle|org.codehaus|org.opensearch|org.objectweb|org.joda|org.hamcrest|org.openjdk|org.gradle|org.junit', + 'javax', + 'java', + '', + '\\#java|\\#org.opensearch|\\#org.hamcrest|\\#' + ) eclipse().configFile rootProject.file('formatter/formatterConfig.xml') trimTrailingWhitespace() endWithNewline();