Skip to content

Commit

Permalink
add university of maryland mirror for Eclipse formatter (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX authored Jan 26, 2025
1 parent bfb30c4 commit d102cb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android.nonTransitiveRClass=true
org.gradle.unsafe.configuration-cache=false

kotlinVersion=2.0.20
spotlessVersion=6.25.0
spotlessVersion=7.0.2
shadowJarVersion=8.3.2
buildconfigVersion=5.5.0
grgitVersion=5.2.2
6 changes: 4 additions & 2 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ configure<com.diffplug.gradle.spotless.SpotlessExtension> {
// define the steps to apply to those files
trimTrailingWhitespace()
endWithNewline()
indentWithTabs()
leadingSpacesToTabs()
}
// format "yaml", {
// target "*.yml", "*.yaml",
Expand Down Expand Up @@ -61,6 +61,8 @@ configure<com.diffplug.gradle.spotless.SpotlessExtension> {

removeUnusedImports()
// Use eclipse JDT formatter
eclipse().configFile("spotless.xml")
eclipse()
.configFile("spotless.xml")
.withP2Mirrors(mapOf("https://download.eclipse.org/" to "https://mirror.umd.edu/eclipse/"))
}
}

0 comments on commit d102cb3

Please sign in to comment.