Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Apply spotless. Fix esplugin application.
Browse files Browse the repository at this point in the history
  • Loading branch information
dweiss committed Oct 5, 2020
1 parent 7dc29b1 commit a027f04
Show file tree
Hide file tree
Showing 25 changed files with 3,835 additions and 3,795 deletions.
13 changes: 8 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

// This plugin's version (typically must match that of ES).
version = '7.9.2'
group = 'org.carrot2'

buildscript {
ext {
version_es = '7.9.2'
Expand All @@ -22,9 +18,16 @@ buildscript {
plugins {
id 'java-library'
id 'idea'
id 'elasticsearch.esplugin'
id 'com.diffplug.gradle.spotless' version "4.5.1" apply false
}

apply plugin: 'elasticsearch.esplugin'
apply from: file('gradle/validation/spotless.gradle')

// This plugin's version (typically must match that of ES).
version = '7.9.2'
group = 'org.carrot2'

repositories {
mavenLocal()
mavenCentral()
Expand Down
24 changes: 24 additions & 0 deletions gradle/validation/spotless.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

allprojects { prj ->
plugins.withType(JavaPlugin) {
prj.apply plugin: 'com.diffplug.gradle.spotless'

spotless {
java {
licenseHeaderFile rootProject.file("gradle/validation/spotless/source-header.txt")
lineEndings 'UNIX'
endWithNewline()
googleJavaFormat('1.8')
}

check.dependsOn(spotlessCheck)
}

task tidy() {
description "Applies formatters and cleanups to sources."
group "verification"

dependsOn spotlessApply
}
}
}
Empty file.
Loading

0 comments on commit a027f04

Please sign in to comment.