Skip to content

Commit

Permalink
Update formatter settings
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Oct 16, 2024
1 parent e878e3b commit 96a5773
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
6 changes: 0 additions & 6 deletions plugins/command-manager/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ buildscript {

dependencies {
classpath "org.opensearch.gradle:build-tools:${opensearch_version}"
configurations.all {
resolutionStrategy {
force("org.eclipse.platform:org.eclipse.core.runtime:4.29.0") // CVE for < 4.29
force("org.eclipse.platform:org.eclipse.core.resources:4.20.0") // CVE for < 4.20
}
}
}
}

Expand Down
12 changes: 6 additions & 6 deletions plugins/command-manager/gradle/formatting.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ allprojects {
project.apply plugin: "com.diffplug.spotless"
spotless {
java {
target 'src/**/*.java'
licenseHeaderFile("${rootProject.file("formatter/license-header.txt")}")
googleJavaFormat().aosp()
importOrder()
removeUnusedImports()
eclipse().configFile rootProject.file('formatter/formatterConfig.xml')
trimTrailingWhitespace()
endWithNewline()

// add support for spotless:off and spotless:on tags to exclude sections of code
toggleOffOn()
}
format("license", {
licenseHeaderFile("${rootProject.file("formatter/license-header.txt")}", "package ");
target("src/*/java/**/*.java")
})
}
}
12 changes: 6 additions & 6 deletions plugins/setup/gradle/formatting.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ allprojects {
project.apply plugin: "com.diffplug.spotless"
spotless {
java {
target 'src/**/*.java'
licenseHeaderFile("${rootProject.file("formatter/license-header.txt")}")
googleJavaFormat().aosp()
importOrder()
removeUnusedImports()
eclipse().configFile rootProject.file('formatter/formatterConfig.xml')
trimTrailingWhitespace()
endWithNewline()

// add support for spotless:off and spotless:on tags to exclude sections of code
toggleOffOn()
}
format("license", {
licenseHeaderFile("${rootProject.file("formatter/license-header.txt")}", "package ");
target("src/*/java/**/*.java")
})
}
}

0 comments on commit 96a5773

Please sign in to comment.