mirror of
https://github.com/sbt/sbt.git
synced 2026-09-07 11:01:08 +02:00
[2.x] Format pom.xml (#9059)
This commit is contained in:
@@ -4289,7 +4289,9 @@ object Classpaths {
|
||||
configuration.allRepositories,
|
||||
)
|
||||
val processed = configuration.process(pomXml)
|
||||
scala.xml.XML.save(file.getAbsolutePath, processed, "UTF-8", xmlDecl = true)
|
||||
val printer = new scala.xml.PrettyPrinter(1000, 4)
|
||||
val formatted = scala.xml.XML.loadString(printer.format(processed))
|
||||
scala.xml.XML.save(file.getAbsolutePath, formatted, "UTF-8", xmlDecl = true)
|
||||
log.info("Wrote " + file.getAbsolutePath)
|
||||
file
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user