Skip to content

Commit

Permalink
Spotless formatting using google format v1.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jadeandtea committed Feb 13, 2024
1 parent c707f57 commit 9936767
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,42 @@ plugins {
id 'java'
id 'edu.sc.seis.launch4j' version '2.5.3'
id 'kr.motd.sphinx' version '2.10.0'
id 'com.diffplug.spotless' version '5.14.2'
id 'com.diffplug.spotless' version '6.25.0'
}

spotless {
java {
target '**/*.java'
}
}

version '2.0.0'

apply plugin: 'java'
apply plugin: 'application'
// apply plugin: 'checkstyle'

spotless{
enforceCheck false

format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'

// define the steps to apply to those files
trimTrailingWhitespace()
indentWithSpaces() // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
}

java{
importOrder()

removeUnusedImports()

cleanthat()

formatAnnotations()

googleJavaFormat('1.19.2')
}
}

mainClassName = 'edu.rpi.legup.Legup'

sourceCompatibility = 11
Expand Down

0 comments on commit 9936767

Please sign in to comment.