Build: Sort idea files in ivy repository to stabilize order
Sort by lowercase name, otherwise order may be different on win
This commit is contained in:
@@ -402,16 +402,19 @@ fun writeIvyXml(
|
||||
}
|
||||
|
||||
element("publications") {
|
||||
artifactDir.listFiles()?.filter(::shouldIncludeIntellijJar)?.forEach { jarFile ->
|
||||
val relativeName = jarFile.toRelativeString(baseDir).removeSuffix(".jar")
|
||||
emptyElement("artifact") {
|
||||
attributes(
|
||||
"name" to relativeName,
|
||||
"type" to "jar",
|
||||
"ext" to "jar",
|
||||
"conf" to "default"
|
||||
)
|
||||
}
|
||||
artifactDir.listFiles()
|
||||
?.filter(::shouldIncludeIntellijJar)
|
||||
?.sortedBy { it.name.toLowerCase() }
|
||||
?.forEach { jarFile ->
|
||||
val relativeName = jarFile.toRelativeString(baseDir).removeSuffix(".jar")
|
||||
emptyElement("artifact") {
|
||||
attributes(
|
||||
"name" to relativeName,
|
||||
"type" to "jar",
|
||||
"ext" to "jar",
|
||||
"conf" to "default"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
sourcesJar.forEach { jarFile ->
|
||||
|
||||
Reference in New Issue
Block a user