add university of maryland mirror for Eclipse formatter (#1289)

This commit is contained in:
Uriel
2025-01-26 17:33:52 +01:00
committed by GitHub
parent bfb30c472b
commit d102cb3778
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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",
@@ -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/"))
}
}