From b61fb78d8ba7c310a2493a4d4dd75a8aaa777204 Mon Sep 17 00:00:00 2001 From: soares Date: Wed, 1 Apr 2020 16:50:53 +0100 Subject: [PATCH] JAL-3438 Added spotless task to use the utils/eclipse/JalviewCodeStyle.xml to reformat all .java source files --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 183828f..989c6e0 100644 --- a/build.gradle +++ b/build.gradle @@ -26,6 +26,7 @@ plugins { id 'java' id 'application' id 'eclipse' + id "com.diffplug.gradle.spotless" version "3.28.0" id 'com.github.johnrengelman.shadow' version '4.0.3' id 'com.install4j.gradle' version '8.0.4' id 'com.dorongold.task-tree' version '1.5' // only needed to display task dependency tree with gradle task1 [task2 ...] taskTree @@ -1514,6 +1515,13 @@ task installers(type: com.install4j.gradle.Install4jTask) { } +spotless { + java { + eclipse().configFile(eclipse_codestyle_file) + } +} + + task sourceDist(type: Tar) { def VERSION_UNDERSCORES = JALVIEW_VERSION.replaceAll("\\.", "_") -- 1.7.10.2