JAL-3438 Added spotless task to use the utils/eclipse/JalviewCodeStyle.xml to reforma...
authorsoares <bsoares@dundee.ac.uk>
Wed, 1 Apr 2020 15:50:53 +0000 (16:50 +0100)
committersoares <bsoares@dundee.ac.uk>
Wed, 1 Apr 2020 15:50:53 +0000 (16:50 +0100)
build.gradle

index 183828f..989c6e0 100644 (file)
@@ -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("\\.", "_")