From cd38b03621928e64ddb449e4e63a511c0b371f94 Mon Sep 17 00:00:00 2001 From: Joseph Burton Date: Wed, 6 Aug 2025 14:32:45 +0100 Subject: Optimize JAR indexing (#552) * Multithread JAR indexing * Replace `Analyzer` with custom `AnalyzerAdapter` implementation * Compute frames on class files from Java 1.5 or older * Delete InterpreterPair * Don't analyze non-enum initializers in EnumFieldNameFindingVisitor * Classes may not have frames in java 6--- build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index 46794c5..4453ab9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,12 +1,14 @@ plugins { id 'maven-publish' id 'com.github.johnrengelman.shadow' version '8.1.1' apply false + id 'com.diffplug.spotless' version '7.2.1' } subprojects { apply plugin: 'java' apply plugin: 'maven-publish' apply plugin: 'checkstyle' + apply plugin: "com.diffplug.spotless" repositories { mavenLocal() @@ -47,6 +49,15 @@ subprojects { toolVersion = '10.12.4' } + spotless { + lineEndings = com.diffplug.spotless.LineEnding.UNIX + + java { + removeUnusedImports() + importOrder('java', 'javax', '', 'cuchaz.enigma') + } + } + publishing { publications { "$project.name"(MavenPublication) { -- cgit v1.2.3