From: soares Date: Wed, 1 Apr 2020 15:50:53 +0000 (+0100) Subject: JAL-3438 Added spotless task to use the utils/eclipse/JalviewCodeStyle.xml to reforma... X-Git-Tag: Release_2_11_4_0~45^2~18^2~19 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b61fb78d8ba7c310a2493a4d4dd75a8aaa777204;p=jalview.git JAL-3438 Added spotless task to use the utils/eclipse/JalviewCodeStyle.xml to reformat all .java source files --- 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("\\.", "_")